thanks for that josh
appreciate the quick turn around!Â
Iâll check it out tonight when I get home
Cheers
Dave
thanks for that josh
appreciate the quick turn around!Â
Iâll check it out tonight when I get home
Cheers
Dave
I built and submitted my app to Apple 24 hours ago using a build after 2393. Any problem with already built apps?
Is it now possible to delay the notification question dialog or is that coming a bit later?
Nope, no problem with the previous version. We updated GameThrive for Corona to use our native code which requires changes to your projects.
Just updated the post to include the 2 bigger changes in the update, which does include the delaying of the notification question dialog.
Very nice!
If user declines registration first time around can I later call GameThrive.RegisterForNotifications()  if I manage to convert them to use notifications?
Once they say no you canât prompt you canât prompt again unfortunately due to how iOS handles it. Calling GameThrive.RegisterForNotifications() will just do nothing. I have tested this on iOS 6, 7, and 8. If need to reset the prompt for testing on your own device you can follow these instructions however:
Uninstall your app and reboot.
Set the system clock 1 day ahead and reboot again.
Re-install your app and test again.
What a nightmare to test.
One problem. The delayed popup works which is great. But the IdsAvailableCallback callback did not fire when I replied to the popup.
[lua]GameThrive.IdsAvailableCallback(IdsAvailable)[/lua]
Edit: Tested on iOS7, iPhone 4, verified 2x
Did the IdsAvailableCallback fire once before pushes were accepted with the playerId? It is tried into when the playerId is available but we can look into firing it again when the push token becomes available in the next update of our plugin.
Thanks for the update @jkasten - I just did a build and panicked a little when my app didnt open haha
Just wondering though⌠is there anything I can subscribe to to get updates like this in the future?  or are you able to email your user base to let them know a change has happened?Â
either way, awesome free service and the delay registration is a great idea and i will be using it!
Cheers
Dave
Looks like its fired in subsequent (fresh) launches, but its most important to get this during registration.
Personally I subscribe to this forum, but yeah an email would be nice. Not the fault of GameThrive but this automated updating plugin system Corona uses is terrifying.
Hey all. We just sent out an email with more details. Weâll send out an email any time thereâs an important update like this one.
You can also follow us on Twitter https://twitter.com/gamethrive
Looks like you fixed this, verified working. Really fantastic.Â
I found a new issue.
If you delay the notifications and leave the app (suspend it) the notification popup pops up regardless.  Now the app itself is suspended and therefore can not react to the IdsAvailableCallback (so I can not send playerID to my server) along with other disadvantages (like having a âNoâ options in a pre-popup warning and then the possibility of enabling notification at a later time).
We havenât change anything around the IdsAvailableCallback yet. Did you test on the same device and iOS version?
If you are calling DisableAutoRegister() before Init() then the iOS system prompt asking for notification permissions could never show without the app being active. When are you calling RegisterForNotifications()?
Iâm not calling it at all, that is the problem. But still the notification popup shows when you suspend the app. Iâm going to make a minimized version and see it its the same.
Regarding IdsAvailableCallback, yes I was on a different device and version, I will double check it and report back.
I havenât seen the system prompt asking for push permissions show when the app asking for it wasnât in focus under any condition actually. Can you provide details on how you produced this?
With IdsAvailableCallback, did you just go from iOS 7.1 to iOS 8? Apple changed a lot of things between these 2 iOS versions with push notifications. We are working on trying to make the IdsAvailableCallback work consistent between these 2 versions so game devs donât have to worry about coding for this iOS behavior change.
Working on how to reproduce the suspend notification popup now.
Yes I was going from 7.1 to iOS 8.0.2 in regards to IdsAvailableCallback.
Oh shiii, I was setting a local notification on suspend that triggers the popup. Totally forgot about that. Sorry about that.
Sorry for the frequent posting. My previous post was incorrect (although it probably does trigger the popup).  The real reason it was doing it in my case was native.setProperty(âapplicationIconBadgeNumberâ, 10)
That seemingly has nothing to do with notifications but still pops up the notification popup. Perhaps you can have it in âGotchasâ in your documentation.
Hmm, it seem that Corona is requesting permission for you when that is called.
Setting badge numbers in iOS does require notification permissions actually. The user can go into the system setting>Notifications then disable âBadge App Iconâ. Good idea on the Gotchas since this came up. Didnât realize Corona auto asks for push permission when setting applicationIconBadgeNumber.