Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

IOS Native PlayMaker Action

Discussion in 'Assets and Asset Store' started by stanislav-osipov, Apr 27, 2014.

  1. StarHunter32

    StarHunter32

    Joined:
    Feb 10, 2013
    Posts:
    99
    Hi, when I try the share action for facebook or twitter nothing happens. Is there an init action which should I do before that? Thank you.
     
    Last edited: Sep 14, 2014
  2. stanislav-osipov

    stanislav-osipov

    Joined:
    May 30, 2012
    Posts:
    1,790
    Yep this is required fir the apps with the non-consumables products.


    Connect this action to your restore Purchase Button. when action will fire SuccessEvent, you can get all restored products ids from restoredProducts variable in the action. Thats it :)


    Hello, it should work out of the box. Please send me the Xcode log + info about Unity version, IOS version and Device.
    you can send it to the stans.assets@gmail.com

    Cheers!
     
  3. StarHunter32

    StarHunter32

    Joined:
    Feb 10, 2013
    Posts:
    99
    Edit: I can confirm than in my case when use the action Facebook Post or Twitter Post and I add a 256x256 png icon in the texture slot it does not post. When it's set to none posts fine. Is there a specific requirement for the resolution and type of the texture?

    I now have one issue left - the Game Center score does not seem to upload. My score is just 0 after few games. I connect and open the leaderboard with no problem, but no score. Will send log to mail. Thanks.
     
    Last edited: Sep 14, 2014
  4. stanislav-osipov

    stanislav-osipov

    Joined:
    May 30, 2012
    Posts:
    1,790
    The texture should be mark as readable in the import settings.

    Will check the log!
     
  5. XCO

    XCO

    Joined:
    Nov 17, 2012
    Posts:
    377
    Am Sorry but still a little confused....

    Can we do this step by step ?

    1) Create a button - when pressed it activates the ISN Restore Purchase

    (Do I need to put anything in the "restored product ID") ??

    "you can get all restored products ids from restoredProducts variable in the action" << I dont understand ??


    (Do I have to put a global String Variable inside the purchase action where it says "receipt" ?

    Because if so that would make a lot of sense to me! cause than you could use that global variable in the restore action ? I'm so confused... Arrrggghhh


    (Should I write down the "com.site.iapname" id in the string field) ???

    Argggghhhhh (thats my angry pirate sound, Arrrggggghhhh) :)
     
    Last edited: Sep 14, 2014
  6. StarHunter32

    StarHunter32

    Joined:
    Feb 10, 2013
    Posts:
    99
    Just to clear out that my issues were entirely on my side. In order to post with texture it needs to be with specific format and read-write enabled. Posting score on GameCenter is also on my side - to early before the score is calculated, so it actually sends score fine, but with value of 0. Thank you Stan for you patience and support.
     
    Last edited: Sep 14, 2014
  7. stanislav-osipov

    stanislav-osipov

    Joined:
    May 30, 2012
    Posts:
    1,790
    nope

    It return not the string it return array of restored purchases ids. I pretty sure you can get the array from the action. if no I would appreciate if you will explain me best way to return array of strings as result using Playmaker. Because as you know I am not "pro" playmaker user.


    No problem, I am glad that your issues is solved.

    It can be actually in any format, but enabling read-write is really important, otherwise plugin will not able to get pixels from texture.

    Cheers!
     
  8. XCO

    XCO

    Joined:
    Nov 17, 2012
    Posts:
    377
    I am sorry STAN but I still don't understand how this work, and I cant tell if it works or not.

    There are has to be a way you can explain this too me in a STEP by STEP manner - So Nothing goes wrong because As you know I dont understand some of the more technical things... BUT I really need this :|

    Also if anyone else has experience and they know exactly what to do let me know please...
     
  9. stanislav-osipov

    stanislav-osipov

    Joined:
    May 30, 2012
    Posts:
    1,790
    Okay, so how you retrieving arrays from playmaker actions?
     
  10. XCO

    XCO

    Joined:
    Nov 17, 2012
    Posts:
    377
    I don't even know what an Array is lol

    BUT - I am learning... We can do this STAN - the power of togetherness :D and maybe this forum can help us.


    http://hutonggames.com/playmakerforum/index.php?topic=835.0


    https://hutonggames.fogbugz.com/?W715
    (here are some more examples, sortav)



    Here is another LINK we can check out...

    http://www.screencast.com/users/JeanFabre/folders/PlayMaker

    https://hutonggames.fogbugz.com/default.asp?W372
     
    Last edited: Sep 15, 2014
  11. stanislav-osipov

    stanislav-osipov

    Joined:
    May 30, 2012
    Posts:
    1,790
    Well, Here is usage example.

    1) The restore Action

    2) This array will contain list of all products that are restored. You can retrieve products from this array after action is successfully completed, and you may see the fail and complete events as well on the screenshot.

    3) This is Current restored item. For etch restored item during restore flow will be fired Item Restore Event, and item id will be set to Current Restored Item.

    So Basically in Item Restored State we are showing ISN pop up with item id for each restored item. Here is a closer look:


    I hope it's clear enough. I will also send you the example scene.
    Cheers!
     
  12. XCO

    XCO

    Joined:
    Nov 17, 2012
    Posts:
    377
    It seem when the restore works you just bring up a pop up saying it worked. But how do I know what was restored so I can unlock those items for the players ? Hopefully we can figure this out tonight at our skype meeting and than i can create a full proof guide for the rest of the community!
     
  13. XCO

    XCO

    Joined:
    Nov 17, 2012
    Posts:
    377
    The Play Maker GODs sent me an email yesterday, saying:


    I think these actions haven't been tested because there is no way when restoring to get notified about the products to restore, so I made a new action that indeed use ArrayMaker to store the product ID returned by the Restore Call.

    So give me few more days, we are about to do our first sandbox testing likely beginning of next week and test this restore function. Please bump me every week or so on this. I will release this to the forum, and contact stan when I know for sure it's working so that he can include it. Also the next version of PlayMaker will allow to save into an array without ArrayMaker, so this is likely a temporary solution until the next playmaker verison is out and then it will be built in easily.

    Meanwhile, I have attached the action in questions (!!!BUT IT'S UNTESTED YET!!!)

    ______________________________________________________________________________________________

    So as of now there is no way to create a restore button with playmaker, so I apologize for not having understood this, though it still sucks for me. But at least now I understand that this isn't your APIs issues...

    So now I am back to just waiting and watching my APP collect dust as the new iPhone is released! :(

    Please work with Jean and Alex on this and maybe encourage them to work faster on this. NOTHING is more important than making MONEY off of your apps, and this is a huge component!

    You play an Important part in all of this STAN. You are the chosen one, the only one who can communicate with the Gods now on this matter! Were counting on you...
     
    Last edited: Sep 19, 2014
  14. stanislav-osipov

    stanislav-osipov

    Joined:
    May 30, 2012
    Posts:
    1,790
    The restore action is firing restore product event for each restored product with id of this product. Cheers!
     
  15. StarHunter32

    StarHunter32

    Joined:
    Feb 10, 2013
    Posts:
    99
    The Game Center show UI action does not work on v5.0. When building with 4.9 it works. No changes in game, only the iOS Native version.
     
  16. stanislav-osipov

    stanislav-osipov

    Joined:
    May 30, 2012
    Posts:
    1,790
    I will check this, thanks for the report.

    Cheers
     
  17. StarHunter32

    StarHunter32

    Joined:
    Feb 10, 2013
    Posts:
    99
    Please tell when a fix or workaround is available.

    I also would like to ask about the action ISN_IsInAppsEnabled - can I use this action to test if the device has internet connection so I can enable/disable the iap action? In my game the player can make an IAP during gameplay, but if I don't have internet connection the games pauses/freezes on the IAP action, since there's no connection. Can I bypass this action with the ISN_IsInAppsEnabled and the "can make payments" event?

    Also, when I go from Window -> iOS Native -> Edit Settings I get this error:
    Does not seem to do any harm, but still maybe you should know.

    Thank you.
     
    Last edited: Sep 25, 2014
  18. stanislav-osipov

    stanislav-osipov

    Joined:
    May 30, 2012
    Posts:
    1,790
    I did small example scene and tested it on IOS 7 and 8.
    I will send you the project via PM, just make sure you trying to show UI after the user is connected.


    Nope, this check if device hash enabled inApps, nothing to do with the internet connection. I gues you should use some action to test internet before going to InApps API.


    Thanks for the report. In was happening only n WebPlayer platform. Fixed.

    P.S. Small off topic but I guess it will be useful to read for you:
    http://forum.unity3d.com/threads/ios-native-inapp-purchasing-with-playmaker.270376/

    Cheers!
     
  19. StarHunter32

    StarHunter32

    Joined:
    Feb 10, 2013
    Posts:
    99
    Thank you. Waiting for PM.
     
  20. StarHunter32

    StarHunter32

    Joined:
    Feb 10, 2013
    Posts:
    99
    Hi, I'm still waiting for the package/example that works on iOS8.
    As mentioned in the other threat xcode gives this when building with iOS Native 5 on iOS8:

    2014-09-28 16:16:51.297 testgame[189:9850] IOSGameCenterManager inited

    2014-09-28 16:16:51.299 testgame[189:9850] authenticateLocalPlayer call

    ...


    2014-09-28 16:16:55.400 testgame[189:9850] Error: (null)

    2014-09-28 16:16:55.402 testgame[189:9850] PLAYER NOT AUTHENICATED
     
  21. kasperfm

    kasperfm

    Joined:
    Nov 20, 2013
    Posts:
    3
    I would like that too :)
     
  22. stanislav-osipov

    stanislav-osipov

    Joined:
    May 30, 2012
    Posts:
    1,790
    Starting from IOS8, before using game center you need to enable Sandbox manually in your device under Settings -> Game Center -> Developer.

    Anybody who needs the updated version before official release, just send the request to the support e-mail:
    https://www.assetstore.unity3d.com/en/#!/publisher/2256
     
  23. Kyani

    Kyani

    Joined:
    Aug 15, 2014
    Posts:
    5
    Hi,
    I am using the Game Center Playmaker Actions. In the documentation it says "Before using Achievements functionality, you should register your achievements in the plugin settings under the Game Center tab."
    I am unsure of what to add in here. Your example is "my.achievement.Id1"
    In itunes connect I have an achievement Reference Name which is the name of the achievement and an Achievement ID so would I type "Reference Name.Achievement Id" ?
    Thankyou
     
  24. stanislav-osipov

    stanislav-osipov

    Joined:
    May 30, 2012
    Posts:
    1,790
    Kyani likes this.
  25. Kyani

    Kyani

    Joined:
    Aug 15, 2014
    Posts:
    5
    Great, thanks for that :)
     
  26. StarHunter32

    StarHunter32

    Joined:
    Feb 10, 2013
    Posts:
    99
    Since Amazon Native does not seem to have a thread I'm posting here regarding its Playmaker actions. The Purchase action does not seem to send fail and success events. When it enters the action the Amazon IAP dialog appears, but it does not send events if you buy or cancel purchase. What could be the issue?
     
  27. stanislav-osipov

    stanislav-osipov

    Joined:
    May 30, 2012
    Posts:
    1,790
    Hello, @Danail Amazon Native steel in beta, than's why it does not have own thread. Please send this request to the stans.assets@gmail.com
    Or just PM me your e-mail addrres and I will add ticket for this issue. Support team will get in touch with you.
    Cheers!
     
  28. Lab618

    Lab618

    Joined:
    Jan 12, 2015
    Posts:
    36
    Hi Stan,

    I've just purchased iOS Native, and so far so good. I've got most things I need working great, and it was really easy using the Playmaker actions. I just have a couple of queries:

    1. My game has five leaderboards and they show up fine in the Game Center app, but when I use the ISN_Show Leaderboards UIAction it only shows me scores for one of them. How do I get them all to show?

    2. When I build my project, I'm getting a lot of deprecated code warnings in Xcode, relevant to the features I'm using in iOS Native. Are these likely to cause me any problems?

    Cheers
    Steve
     
  29. stanislav-osipov

    stanislav-osipov

    Joined:
    May 30, 2012
    Posts:
    1,790
    Hello.


    There is tow actions
    • ISN_ShowLeaderboardUIAction (you should provide leaderboard id and time span as action variables) - will show specific leaderboard.
    • ISN_ShowLeaderboardsUIAction - action will show all leaderboards.

    Nope, this is for compatibility reasons.


    Cheers!
     
  30. munaeem

    munaeem

    Joined:
    Jul 6, 2012
    Posts:
    13
    When I test the example scene for playmaker in unity for in-app purchase (billing) on my phone it goes to purchase failed. I put the product id on the editor setting with my App Id as well but it does not work. Keep sending me failed purchase. What should i do?
     
  31. stanislav-osipov

    stanislav-osipov

    Joined:
    May 30, 2012
    Posts:
    1,790
    Can I get your device log?
    Cheers!
     
  32. gamedivision

    gamedivision

    Joined:
    Nov 4, 2012
    Posts:
    47
    any chance of getting access to the subject when sending an email, i would like to populate the subject with a pre set word so all users have to do is input the email thanks
     
  33. gozdagb

    gozdagb

    Joined:
    Feb 23, 2014
    Posts:
    71
    How to check if we are already connected to game center?
    I am asking for action like in "AN_Check Connection"
     
  34. darkinyourass

    darkinyourass

    Joined:
    Sep 24, 2015
    Posts:
    28
    So far, this possibility is not present in our plugin.

    At the moment, there is no such playmaker action, but we add it to our to-do list.
     
  35. Starbox

    Starbox

    Joined:
    Sep 17, 2014
    Posts:
    438
    Hello,

    I use the last version of the iOS Native plugin. I installed the actions. I got the following message for the Social actions (all problems are gone if I deleted the Social folder):

    [something relative to the action]
    error CS0103: The name `IOSSocialManager' does not exist in the current context

    It produced a total of 14 errors.

    Is there something I need to install on top of iOS Native for the IOSSocialManager to be found?
    So SA refers to Stan Assets as they've all been "unified" it seems.

    Thing is, I have been looking into several non PlayMaker related scripts that would have something to do with social functions and I can't find a single reference to IOSSocialManager.
    Is there a missing script that would help PM actions actually find the IOSSocialManager?
     
  36. Starbox

    Starbox

    Joined:
    Sep 17, 2014
    Posts:
    438
    I'll stick to 9.11/24, the version where the Social actions don't send errors, until someone figures this one out.
    This is the version where the menu shortcuts are still all under Window / Stan's Assets / ... .The latest version has moved iOS Deploy under its own main tab.
    I'm on Mac, OS High Sierra (but Low Ram).
     
  37. _unitysam_

    _unitysam_

    Joined:
    Dec 20, 2014
    Posts:
    6
    Hi there, I was trying to locate the playmaker actions after installing ios native pro
    Documentation says it is found here:
    Assets/Extensions/IOSNative/Addons/PlayMakerActions.zip

    But I wasn't able to find an Extensions folder or any file called PlayMakerActions.zip.
    Was there an additional plugin I needed to download to receive playmaker support?

    Thanks
     
    Last edited: Oct 11, 2020
  38. stanislav-osipov

    stanislav-osipov

    Joined:
    May 30, 2012
    Posts:
    1,790
    Hey @_unitysam_ can you tell what plugin version are you using?
     
  39. _unitysam_

    _unitysam_

    Joined:
    Dec 20, 2014
    Posts:
    6
    Sure thing, here are my details:
    iOS Native. v: 2020.9 (purchased and downloaded 7th Oct 2020)
    Unity v3029.3.12f1
    Playmaker v1.9.0
    On a Mac
     
  40. _unitysam_

    _unitysam_

    Joined:
    Dec 20, 2014
    Posts:
    6
    @lacost Hey just bumping this! I noticed there was a different plugin called 'Ultimate Mobile Pro', which seems to have some playmaker functionality built into the interface. Should I be using that to get the playmaker actions, or should the ones for iOS native pro exist in addition to the Ultimate Mobile Pro ones? Thanks