react-native-push-notification icon indicating copy to clipboard operation
react-native-push-notification copied to clipboard

The "onRegister" method doesn't call on the first time opening the Android App after installation.

Open dev-satinderpal opened this issue 3 years ago • 0 comments

Bug

It happens 8 out of 10 times after the installation that onRegister method doesn't return FCM data.

Then I used PushNotification.requestPermissions() method to get FCM data. And It works. But in this case, push notification doesn't receive until the app goes background or re-open.

There is a push notification that needs to send when the user does their registration.

Environment info

react-native info output: Android SDK: Not Found Windows SDK: Not Found IDEs: Android Studio: Not Found Visual Studio: Not Found Languages: Java: 1.8.0_282 - /c/Program Files/OpenJDK/openjdk-8u282-b08/bin/javac npmPackages: @react-native-community/cli: Not Found react: 17.0.2 => 17.0.2 react-native: 0.65.1 => 0.65.1 react-native-windows: Not Found npmGlobalPackages: react-native: Not Found

Library version: ^8.1.1

dev-satinderpal avatar Mar 30 '22 17:03 dev-satinderpal