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.
Related
I want to use Remote Config in a application Xamarin.Forms.
I use a blog - Firebase Remote Config in Xamarin Forms
I have a question about the section: Setup Firebase Remote Config.
Quote
We can setup Firebase Remote Config through the Firebase portal https://console.firebase.google.com/project/Your-Firebase-Project/config and it is an easy process because the portal GUI is nice and friendly. To do it, we add a new parameter key and the default value and of course it can be a json (the GUI has a tool to validate the format of the json content). In the example case the key will be Features and the default value a json:
{
"ShowPlayerDetail": false
}
In this case, we setup a key called ShowPlayerDetail to show or not the player detail.
Question:
Where is the JSON file referred to in this section?
Note.
I am currently in a project.
Update-1
Update-2
Update-3
Update-4
Update-5
I have completed the following steps.
Did I do the right thing?
Do my actions correspond to what is described in the blog?
Or do I need to perform Publish changes? (see Pic-4. Result)
Pic-1
Pic-2
Pic-3
Pic-4. Result
You're using an existing Firebase project but there are no apps in your project, please see the Update-4 screenshot .
You could click the iOS or Android icon to add app to your Firebase project, and make sure the Apple bundle ID matches the Bundle identifier in info.plist of your Xamarin.iOS project, the Android package name matches the packagename in AndroidManifest.xml of your Xamarin.Android project. After registering the app, you can download the google-services.json file for Android and the GoogleService-Info.plist file for iOS.
I have a react-native application with its backend in NodeJS. I started implementing notifications using expo-notifications and it is working fine in production with iOS but not with Android.
I have followed this documentation to implement everything. I know that for android I have to setup FCM which is what I did using this.
What I did :
Created my Firebase App
Added Firebase to my Android App
My Android package name is the same as the value of android.package in my app.json
Downloaded google-services.json and placed it in my Expo app's root directory
Uploaded the server credentials using expo push:android:upload --api-key . This has been well configured because when I do expo push:android:show I see the correct token
However, in production I get this error:
Exception occurred while executing exported method getDevicePushTokenAsync on module ExpoPushTokenManager. Please set your Project ID. A valid firebase project ID is required to communicate with Firebase server APIs: It identifies your project with Goolge.
Did I forget any of the steps ? What is wrong with my project ID? Do I need to completely rebuild my code and send it on Google Play Store or can I do an instant update using expo publish ?
Here is my app.json android in case:
"android": {
"versionCode": 13,
"userInterfaceStyle": "light",
"package": "com.xxx.xx",
"googleServicesFile": "./google-services.json",
"useNextNotificationsApi": true,
"permissions": [
"CAMERA",
"CAMERA_ROLL",
"MEDIA_LIBRARY",
"WRITE_EXTERNAL_STORAGE",
"READ_EXTERNAL_STORAGE",
"NOTIFICATIONS"
]
},
Any help would be appreciated :)
PS : I had a look at this question but still getting same problem.
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.
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
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).