Skip to content
This repository has been archived by the owner on May 17, 2022. It is now read-only.

One Signal - Auto Prompt not working #145

Open
applauzmedia opened this issue Jan 25, 2021 · 3 comments
Open

One Signal - Auto Prompt not working #145

applauzmedia opened this issue Jan 25, 2021 · 3 comments
Assignees

Comments

@applauzmedia
Copy link

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 applauzmedia changed the title One Signal - Auo Prompt not working One Signal - Auto Prompt not working Jan 25, 2021
@myflashlab
Copy link
Owner

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

@applauzmedia
Copy link
Author

Is there any workaround to this issue in the meantime ?

@myflashlab
Copy link
Owner

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants