Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Guide on App Launch won't trigger if user grants notifications #7

Closed
yago1994 opened this issue Apr 26, 2022 · 7 comments
Closed

Guide on App Launch won't trigger if user grants notifications #7

yago1994 opened this issue Apr 26, 2022 · 7 comments
Labels
iOS Platform/Framework

Comments

@yago1994
Copy link

We have an app were we are using Pendo to display a Guide to new users upon App Launch.

The guide doesn't show up properly on App Launch if the request for notifications from the user is granted, but it does if the request is denied. If the request is approved, the guide will show up at a random time through the app's use.

Tested on iOS 15+, iPhone XR and higher

@yago1994 yago1994 changed the title Guide on App Launch won't trigger if User grants notifications Guide on App Launch won't trigger if user grants notifications Apr 26, 2022
@MikePendo
Copy link
Contributor

@yago1994
Which SDK version are you using? please make sure u use the latest one.
Which platform you r targeting Native/RN/RNN/Xamarin/Flutter?

@yago1994
Copy link
Author

Using 2.14.0 installed through Swift Package Manager
Targeting Native iOS

@yago1994
Copy link
Author

Can confirm the issue is still present in 2.15.0

@MikePendo
Copy link
Contributor

ok, After second thought I think I know what happening.
When u ask for notification permission IOS put your app in UIApplicationStateInactive
By default Pendo will show the guides only when the app is in UIApplicationStateActive . (It doesnt make sense to show guides if the user doesnt interact with the app). As you try to display the app launch guide when the app in not active state the guide wont be displayed
and the app launch guide get stuck ..... and waits for the trigger, while in general there should be nothing to stop the app launch guide from being displayed(kind of interesting case I would say.)
Will the following work around can work for you:
Can u set up the guide for a specific page? (for the exact page that u want)
In that case for the first time when the user get asked for notifications the guide wont be displayed next time when the user see that page the guide will be displayed

@yago1994
Copy link
Author

Got it, that makes sense.
I don't think we can set up the guide on a specific page because we are using it as a splash screen, so it needs to trigger on first launch. (Tried setting it up on page view rather than launch with the same set up but the trigger doesn't occur).
I could move the notification request to a different place in the app to avoid moving the guide.

@MikePendo
Copy link
Contributor

@yago1994
if u set up the guide on a specific page u should see it. In case you are triggering the notification permission on the same page, the guide will be blocked when the notification pop up shows up BUT as son as u enter this page again the guide will show up.
As thumb rule if activation is page view the guide display trigger should always happen when the page appears.
Another work around (as u have suggested) is to trigger the notification permission after you show the guide. (but I think in that case the notification pop up will appear on top of the guide as IOS will take advantage here)

@MikePendo
Copy link
Contributor

@yago1994
I am closing this issue, feel free to contact us

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
iOS Platform/Framework
Projects
None yet
Development

No branches or pull requests

3 participants