Comments (4)
Are you enabling user notifications ? What OS versions? Did you disable notifications at the app level? Settings -> App Info -> App -> Notifications ?
from react-native-airship.
Yes, and yes, I did all the steps for notifications, the OS versions is pointed in the issue, for the Galaxy S6 is Android 7.0
and for the galaxy On 5 is Android 6.0.1
and like I said, my previous native android app is working fine on the Galaxy S6
from react-native-airship.
This is running the same SDK that runs on a native app.
Here is the call that determines that opt in status:
https://github.com/urbanairship/android-library/blob/fbfbcde094cca307cfd2906a508d4262546d2e37/urbanairship-sdk/src/main/java/com/urbanairship/push/PushManager.java#L544
Things that could cause it to be opted out:
- User notifications disabled on PushManager
- Push disabled on PushManager
- GCM/FCM not configured properly
- Notifications are disabled at the app level
- Google Play Services is out of date
Assuming its the same code running on both phones, you can probably rule out push and user notifications being disabled on the SDK. My guess its most likely Google Play Services being out of date. Your react version is probably pulling in a newer version of the Play Services than your native app.
You should see something in the logs during start up. You can also add
import com.urbanairship.google.PlayServicesUtils;
...
public class MainActivity extends ReactActivity {
...
@Override
public void onResume() {
super.onResume();
// Handle any Google Play services errors
if (PlayServicesUtils.isGooglePlayStoreAvailable(this)) {
PlayServicesUtils.handleAnyPlayServicesError(this);
}
}
To the MainActivity.java to have it prompt the user to install latest version.
from react-native-airship.
Thanks for your help, I forgot about Play services, and I just updated the Google play services and works, I'm going to put this check in the native code.
from react-native-airship.
Related Issues (20)
- Concurrency is only available in iOS 13.0.0 or newer HOT 2
- Push successfully received on Android, but not displaying as a "heads-up" banner HOT 4
- MessageCenterUpdatedEvent sends different values for ios and android HOT 2
- The number of unread notifications on the app icon is not reduced on iOS HOT 15
- Live Activity support HOT 6
- Could not resolve com.urbanairship.android:urbanairship-hms:7.0.2. HOT 3
- ld: library not found for -lAirshipExtensions HOT 1
- Airship Message center is not working for android HOT 6
- [Android]: 'channelEditTags' overrides nothing HOT 2
- [Android] AirshipModule.kt failing due to type errors HOT 4
- Crashes on iOS with KERN_INVALID_ADDRESS, KERN_PROTECTION_FAILURE. v16.0.0 HOT 1
- How to create App Screens with Expo-Router? HOT 4
- `featureFlagManager.flag` throwing error on Android. HOT 3
- A problem occurred evaluating project ':react-native-airship' HOT 6
- Expo SDK 50 - Foreground notifications cause app to reload HOT 7
- Incorrect type definition on `listIconUrl` HOT 2
- Starting iOS Live Activities HOT 4
- AirshipFrameworkProxy.AirshipProxyError on ios with expo HOT 2
- AirshipCore.UARemoteDataMapping errors after upgrading to v18.0.0 HOT 4
- Creating local notification HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-airship.