I am trying to implement FCM using firebase which uses Push notification for my application. I had tried many times still not able to read the token from FCM. Where am I going wrong?
Code and snips.
Error response:
if i use ionic serve locally the following error and warning shows up
if i use ionic cordova run browser i get this before logging into my application
after logging
I took a build of the same app and tried remote debugging on it which had the following error
Before logging in
after logging in
In every instance the error message indicates to install Cordova-fm plugin which i have done.
my package.json
I have tried removing android plugin and install it like a new project didnt work, same error.
I have tried to run just firebase and fcm in a blank Ionic project, still the same error.
I have tried to downgrade the version to see if its works, the error didnt change.
I have tried most of the suggestions from online. Nothing is letting me access the FCM token.
PS: This is my first project with ionic and firebase.
Related
Expo SDK 43.0
Expo-Notifications 0.13.3
Android Standalone build using Dev Client and EAS
Wondering if someone can give me a hand to understand what is going on with my Android build and getting a push token. I have followed the guides for both iOS and Android. Inclusive of adding in the FCM server key to expo. I can see it when I use the eas credential command and also if I just log into Expo.dev and look. However when I try to get an expo push token on an Android physical device, I receive this huge exception object that, unless I am missing something crucial, does not have any available information in it. I have attached a screenshot as has the object in it.
Screenshot of the error that I am receiving
As you can imagine, this works fine in iOS builds and fine in the Expo Go client. I also manually sent a notification/Campaign from firebase and every Android device with the application installed received it.
Good day,
I am currently developing an android mobile app in my local, with mfp8 server.
I can launch the app in my android phone, and successful fire a call to the mfp server.
I try to edit something on an HTML file in the angular project (mobile app front end). I run some command to deploy the web resource to mfp server:
npm run android
mfpdev app register
mfpdev app webupdate
From the mfp console, I can see that the application and web resources last updated date is matched with the time I run those command.
I am expected after I stop and run the app in my mobile, the app will be able to detect something changes and prompt for update. However, it didn't happen, and my app still nothing changes.
Anyone know what mistake on this? Changes in HTML file should be a correct way to test the direct update right?
Edit **
I just found that in MFP log, there is a line as follow:
[AUDIT ] CWWKS1100A: Authentication did not succeed for user ID ibs_mobile. An invalid user ID or password was specified.
However, I am still able to log in to my app. I am not sure of is this related to my direct update or not.
Use cordova command to prepare the app instead of npm run
Try the following steps
a. cordova prepare android
b. mfpdev app webupdate
I created an android application on Android studio 3.4.2 and integrated Firebase using the firebase assistant tool provided on Android studio.There is no problem with using the features of Firebase on the app but when going to the developer's console of Firebase and going to the project overview, it appears as if the the sdk setup is not finished ,I tried following the sdk setup steps provided and the setup won't finish at the last stage i.e, "checking if the app has communicated with our servers,you may need to uninstall and reinstall the app". I've uninstalled my app and reinstalled it but doesn't seem to be registering the app on the Firebase server.
I've tried restarting the internet, Uninstalled my app and reinstalled,made sure net connectivity are okay on both emulator and pc
Check your Firebase console projects, Is there any project with the same package name?. If there is any please remove and try again.
I register on firebase and i followed the steps from Android studio everything looks fine, i found my app in firebase console and some stats for my app.
But the most important is to see when my app crash and i also want to get some info from variables before the crash, so from Android Studio again i add the the crash report but nothing happened, then i follow the steps on the site...still nothing.
When my app runs the test crash lines examples from firebase site it crashes also at firebase console at the crash section nothigh is appeared except the install in fabric & install in firebase options
I just needed to Update everything on Android Studio and make use of latest vesions.
I am new to ionic framework, I am working on push notification in my android ionic project using phone gap push plugin referring the following documentation phonegap push plugin link
But I am unable to find how it gets worked. I need to send notifications to all the devices who already install as a gesture of revisit of my app.
Can any one give clear description step by step to solve this ?
Install plugin from http://ngcordova.com/docs/plugins/pushNotifications/
create one project on google Api console (https://console.developers.google.com/
).
There is method of Registration where you will get $cordovaPush.register(androidConfig).then(function(result) {console.log(result);
you will get device token. Register that device token and save that token on created project from Google API.