Notifications.presentLocalNotificationAsync is delayed in standalone app

Expo CLI 3.11.3 environment info:
System:
OS: Windows 10
Binaries:
Yarn: 1.21.0 - C:\Users\Steve\AppData\Roaming\npm\yarn.CMD
npm: 6.9.0 - E:\Program Files\nodejs\npm.CMD
IDEs:
Android Studio: Version 3.5.0.0 AI-191.8026.42.35.5900203

SDK version : 36.0.0
Standalone app on android 7

just to clear it.I’m using presentLocalNotificationAsync not push notification the point is I send the notifications and after 2-3 minutes they appear.It’s like I sent 6 notifications nothing comes after 3 minutes all 6 notifications come and it’s weird that well on android you get some text above the notification that tells you when it arrived.And that says 3 minutes ago or 2 minutes ago.

The same code ran in expo client worked just fine but now on standalone I get these weird effects.

                        const {status: existingStatus} = await Permissions.getAsync(
                            Permissions.NOTIFICATIONS
                        );
                        if (existingStatus !== 'granted' && Constants.isDevice) {
                            return;
                        }
                        Notifications.presentLocalNotificationAsync({
                            title: i18n.t('chatNotificationTitle'),
                            body: payload.message
                        })

I found the solution make sure your priority is set to max you’ll be fine in that case

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.