push-pole / android-studio-sample

Android studio sample for PushPole
Apache License 2.0
1 stars 0 forks source link

Cannot register with new pushpole sdk library #7

Open homayoonahmadi opened 4 years ago

homayoonahmadi commented 4 years ago

Hello, I recently migrated my app's crashlytics sdk from fabric to firebase and also migrated from pushe sdk to pushpole sdk. everything is ok but the app can not initialize and register. Please help me how I can solve this problem. thanks in advance.

here is the log of issue:

E/PushPole: Obtaining FCM token failed: Please set your project ID. A valid Firebase project ID is required to communicate with Firebase server APIs: It identifies your project with Google.
    java.lang.IllegalArgumentException: Please set your project ID. A valid Firebase project ID is required to communicate with Firebase server APIs: It identifies your project with Google.
        at com.google.android.gms.common.internal.Preconditions.checkNotEmpty(Unknown Source)
        at com.google.firebase.iid.FirebaseInstanceId.checkRequiredFirebaseOptions(com.google.firebase:firebase-iid@@20.2.3:52)
        at com.google.firebase.iid.FirebaseInstanceId.getInstance(com.google.firebase:firebase-iid@@20.2.3:2)
        at com.pushpole.sdk.task.tasks.a.a(Unknown Source)
        at com.pushpole.sdk.task.e.a(Unknown Source)
        at com.pushpole.sdk.task.b.a.a.onRunJob(Unknown Source)
        at com.evernote.android.job.Job.runJob(Job.java:124)
        at com.evernote.android.job.JobExecutor$JobCallable.runJob(JobExecutor.java:181)
        at com.evernote.android.job.JobExecutor$JobCallable.call(JobExecutor.java:166)
        at com.evernote.android.job.JobExecutor$JobCallable.call(JobExecutor.java:149)
        at java.util.concurrent.FutureTask.run(FutureTask.java:237)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
        at java.lang.Thread.run(Thread.java:818)