android - Removing Firebase from project without losing GCM -


in starters, have read thread: remove firebase analytics android app completely - didn't give me answer problem. in app developing had implement push notifications. wanted start gcm, discovered firebase. added project , realized pricing on it. decided scrap , come gcm. removed firebase-related stuff code , thought allright.

lately started work on optimization of app , noticed information in debug log:

07-06 07:03:39.310 13286-13474/com.example.myapp d/firebaseinstanceid: background sync failed: missing_instanceid_service, retry in 20s 

it goes on , on, doubling retry time. i'm not sure how affect app (hovewer, once saw big loss of frames everytime happened), dumbfound firebase still being in app. instances of located in build folder, means can't erase them myself. tried use configurations, tried exclude gcm exclusively, still nothing.

configurations {     all*.exclude group: 'com.google.firebase', module: 'firebase-core'     all*.exclude group: 'com.google.firebase', module: 'firebase-iid'     all*.exclude group: 'com.google.firebase', module: 'firebase-common' } 

it right in beggining of build.gradle file. not sure if it's important, android studio tells me can't resolve symbol "exclude" in here. tried put in compile gcm (of course without all* in there), didn't change anything.

tl;dr want rid of firebase , still have gcm in project. ideas?

also remove firebasemessagingservice , instanceidreceiver manifest.xml file.

remove following module manifest file.

        <service             android:name=".myfirebasemessagingservice">             <intent-filter>                 <action android:name="com.google.firebase.messaging_event"/>             </intent-filter>         </service>         <!-- [end firebase_service] -->         <!-- [start firebase_iid_service] -->         <service             android:name=".myfirebaseinstanceidservice">             <intent-filter>                 <action android:name="com.google.firebase.instance_id_event"/>             </intent-filter>         </service> 

and remove dependencies module level buil gradle file.


Comments

Popular posts from this blog

sequelize.js - Sequelize group by with association includes id -

android - Robolectric "INTERNET permission is required" -

java - Android raising EPERM (Operation not permitted) when attempting to send UDP packet after network connection -