Push notification permission dialog Android

0
We have a working native app with push notifications implemented succesfully, although with one caveat. The RequestNotificationPermission javascript action (NativeMobileResources) does not prompt a permission dialog and returns true on a first install and run of the app. Push notifications are received when the app is open, but not when the app is closed. When a push notification is send while the app is in the background, and then the app is brought to the foreground, only then the notification permission popup appears. This is not the desired behaviour because no push notification will be received until the app is reopened and permission is granted. How can we force the notification permission dialog for android on the first run of the application after a fresh install, without having to background it, send a push notification, and then foreground it? We are working with Mendix version 9.24.1, push notifications 7.1.0 and nativemobileresources 4.0.3
asked
1 answers
0

You may need to update NativeMobileResources module to v4.0.5:

 

v.4.0.5

November 1, 2023

Download

Framework version: 9.24.1

Publish date: November 1, 2023

UUID: 643d8531-5407-4e97-949f-9364f8b8c6d3

Release Notes### Fixed - We have added push notification permission request support for Android API level>=33.

GitHub

https://github.com/mendix/native-widgets

answered