ANE-LAB icon indicating copy to clipboard operation
ANE-LAB copied to clipboard

One Signal - Auto Prompt not working

Open applauzmedia opened this issue 4 years ago • 3 comments

I'm using the FCM / One Signal ANE

settings.autoPrompt = false; is not doing anything. No matter what I set the settings to the prompt comes up right when the app opens.

I have a custom dialog I have that opens the app opens. I want the user to Accept or Decline and trigger the prompt only if they accept.

It seems that it automatically pops up because I have called FCM.init();

If I don't call FCM.init(); none of the One Signal code will work.

How do I get around this?

applauzmedia avatar Jan 25 '21 03:01 applauzmedia

yes, as soon as FCM.init() is called the promotion window will be called. This is a very good thing to be fixed for next version. @nekofar

myflashlab avatar Jan 28 '21 07:01 myflashlab

Is there any workaround to this issue in the meantime ?

applauzmedia avatar Jan 28 '21 15:01 applauzmedia

Hmm, of course you could try to initialize FCM later in your app when you have asked for the user consent.

myflashlab avatar Jan 28 '21 19:01 myflashlab