Open alizaink opened 8 years ago
@TmanTman I have build the app successfully , but my app is crashing as soon as i open, can u help me with this ?
@prabhulalramesh I'll try (only able to help with Angular/Android), but you'll have more success if you open this question to the entire group.
Have you inspected the logs through chrome://inspect to see if the problem with Angular/Ionic?
Or is the Android app crashing - and if so, have you used Android Studio and inspected LogCat?
Have you read through all the resolved and open issues? It seems like there is many people with roughly the same problem as you. I'm trying to avoid having discussion about apps crashing in this thread.
@TmanTman I have got the FCM token , after posting the above comment only i saw your solution, this line resolved my crash issue .Thanks a lot.
There are only 3 steps for configuration: STEP 1 cordova plugin add cordova-plugin-fcm STEP 2 then change this dependencies { classpath 'com.android.tools.build:gradle:1.0.0+' }
change as dependencies { classpath 'com.android.tools.build:gradle:1.2.3+' }
STEP 3
for crash , add this below line to already existing defaultConfig{ } add android { .... defaultConfig { applicationId "com.example.my.app" ... } }
@TmanTman i didnt do the last step 3 alone, that did the crash trick actually ,prevented crash.
and ofcourse use this line to register token
FCMPlugin.getToken( function(token){ alert(token); }, function(err){ alert('error retrieving token: ' + err); } )
@TmanTman i have successfully integrated the plugin and can send notification from console , i have some doubts as to how to use this plugin to send notification in ionic can you have a look at my stackoverflow question ?
I can only share my experience with Android.
Simply install the plugin as you would install any other plugin. Copy your google-services.json file into the platforms/android folder.
It's not necessary to import the app into Android studio or something to sync the gradle files, it will automatically be done.
I had two issues. The issues were resolve with the following two threads:
80
6
Having said that, it would be extremely helpful if you could tell where you struggled or what you've tried!