I want to delay registration for push notifications until I can tell the users of my app what kind of information will be contained in the notification. The documentation for the OneSignal plugin seems to say that doing
local OneSignal = require("plugin.OneSignal") OneSignal.DisableAutoRegister()
before
OneSignal.Init(...)
will let me choose when to prompt for push notification permission (with the RegisterForNotifications() method).
However DisableAutoRegister() doesn’t seem to have any effect. The doc also mentions the key/property (?)
kOSSettingsKeyAutoPrompt
but I don’t know what to do with this. Any help would be appreciated.