hansemannn / titanium-firebase-analytics

Use the Firebase Analytics SDK in Axway Titanium 🚀
Other
35 stars 18 forks source link

Android FirebaseInstanceId #26

Closed Wingee closed 6 years ago

Wingee commented 6 years ago

When my app runs I'm getting the following error

[ERROR] : FirebaseInstanceId: Failed to resolve target intent service, skipping classname enforcement [ERROR] : FirebaseInstanceId: Error while delivering the message: ServiceIntent not found.

I've ensured I'm using the correct mobilesdk_app_id in the strings.xml file

Any other ideas why this is happening?

hansemannn commented 6 years ago

See https://github.com/hansemannn/titanium-firebase-analytics#android

Wingee commented 6 years ago

Thanks for that, but that doesn't resolve my issue. i've already followed those steps

Here is my application tag

`

`

Wingee commented 6 years ago

and my strings.xml file

<?xml version="1.0" encoding="UTF-8"?><resources><string name="google_app_id">1:724774800604:android:29792afghfghfghfghfghfg</string></resources>

hansemannn commented 6 years ago

Reopening for community help, but I am currently unable to assist.

Wingee commented 6 years ago

It appears that that error doesn't affect getting data into FA.

From a little further digging I don't believe this part is necessary for FA:

`

        <service android:name="MY_PACKAGE_NAME.gcm.GcmIDListenerService" android:exported="false">
           <intent-filter>
              <action android:name="com.google.android.gms.iid.InstanceID" />
           </intent-filter>
        </service>`

And I think it was clashing with another module I'm using for push notifications. Perhaps that section could be removed from the readme

hansemannn commented 6 years ago

Updated the readme.

AppWerft commented 6 years ago

I have the same issue with my extension of auth module. If I call on JS layer

FirebaseAuth.verifyPhoneNumber({
    phoneNumber : win.children[0].getValue(),
    oncodesent : onCodeSent,
    onverificationcompleted : onVerificationCompleted,
    onerror : onError
});

I run in same issue. Here the fulllogcat: https://gist.github.com/AppWerft/3cfbf2bda02e2574d23e00578fe4299a and I ask me why the verifyPhoneNumber-method triggers an issue with FCM.

Update: smae problem with FirebaseAuth.signInAnonymously