Ionic 3 “phonegap-plugin-push” SERVICE_NOT_AVAILABLE - push-notification

I’m building ionic3 application , I’m using phonegap-plugin-push to receive push notifications from FCM , No when I run app on devices it works well on some devices and give me error on others.
any solution for this problem ? enter image description here

you can use ionic fcm cordova plugin https://ionicframework.com/docs/native/fcm/
itd much better and easy . push phonegap-plugin-push is an old version its not working well with the new v of GCM (FCM) that is more modern than old GCM that is deprecated by now

Related

sqlite3_prepare_v2 failure: no such table Ionic and cordova pluging sqlite

I need disable WAL because my app not work in Android Pie for the fallowing error (message: "sqlite3_prepare_v2 failure: no such table: productos"). I read that in Android Pie the WAL option is enabled by default and it is likely that for that reason my app does not work, I'm using ionic 3 and cordova sqlite plugin, someone tell me how i can disable that.
I studied the links that suggest me but I don't see those cases being based on ionic projects. How could I implement the disableWriteAheadLogging () that is used in Android, but in ionic.

how to implement mixpannel analytics in react native

i have to implement mixpannel analytics in one of my app.
i checked out Mixpannel officail site and react-native-mixpannel
but i'm struggling how to get started with it.
How to use it from scratch and what things i need for it like firebase
or not ?
Please suggest me some article or something else from where i can implement mixpannel anaylits to my react native app
Thanks
First of all did you use react-native init AwesomeProject or expo new?
With the first one you have access to the native code for iOS and Android.
For expo you have only the JavaScript files and you can't use this SDK.

Implementing Firebase Crashlytics in React native application - Android

I want to add Firebase Crashlytics to my React native project. I had a look online and some of the links suggested using Crashlytics with Fabric,
When I looked at Fabric and at somepoint it was mentioned that it was only available till 2020 and recommended to use Firebase Crashlytics. I am a bit confused.
Can any one suggest any link/guide to implement Firebase Crashlytics in my React native project.
Thanks
R
Its kind of simple.
First you need to add firebase to your project use the following link to link react-native-firebase .
https://rnfirebase.io/docs/v5.x.x/installation/initial-setup
Then use there doc to add firebase crash analytics into your code
https://rnfirebase.io/docs/v5.x.x/crashlytics/reference/crashlytics
for example:
import firebase from 'react-native-firebase'
componentDidMount(){
firebase.crashlytics().log('Test Message!');
firebase.crashlytics().recordError(37,"Test Error");
}
Add firebase to your project followed by crashlytics sdk. You might need to put the keys in your android and ios projects. Thts it.
Also have a look at sentry- its more suitable for JS based apps as it shows the line nos and the code which caused the crash. Crashlytics on the other hand as i remember shows only native crashes.

Firebase Cloud Messaging in Xamarin.Android - Push notification status bar icon not being set correctly

I have a Xamarin.Android application which is registered for push notifications with Firebase. Everything works perfectly when the app is in the foreground. However, when the app is in the background and I send it a notification from the Firebase console, the icon that I've set as the default for notifications is not being used, and Android is using a greyscale version of the application's launcher instead:
And the same goes for the notification in the tray:
This shouldn't be happening, since I have the following line in my AndroidManifest:
<meta-data android:name="com.google.firebase.messaging.default_notification_icon" android:resource="#drawable/ic_notification" />
And I have monochrome icons in my drawable folders which follow the guidelines detailed by the Android documentation.
I understand the the Firebase console only sends messages without the Data payload, which is why OnMessageReceived in my FirebaseMessagingService is not called when the app is in the background. What I don't understand is why Android is using my launcher icon instead of the one specified in the manifest for notification-payload-only FCM messages.
I am using version 32.961.0 of Xamarin.Firebase.Messaging, since version 42.1001.0 (the latest stable version) has dependencies which break my app in other ways. Is this likely to be an issue with my version of the package, or is there something else I may be doing wrong?
Updating to Xamarin.Firebase.Messaging version 42.1001.0 fixes the issue; it appears to have been a limitation in Firebase Messaging SDK < 9.8.0 (32.961.0 maps to version 9.6.1).

Using ionic push in production

If I Use dev_push:false then can I use same ionic push code in my app for production.
Please do let me know I am confused .
$ionicAppProvider.identify({
app_id: 'a61bddd',
api_key: '9fdb9a4b3axxxxxxxxa33419463269yyyyyyyc2d6',
gcm_id: '5529cccccwa',
dev_push: false
});
Yes you can. But make sure you have created and uploaded certificates for ISO/Android to ionic push server.
You can follow step by step certification creation for ios and android in ionic documentation. Once you successfully upload those certificates you can receive actual push notification using your same code.

Resources