Skip to content
This repository has been archived by the owner on Oct 24, 2022. It is now read-only.

No events being logged on the Android version #21

Closed
manuelpaulo opened this issue Aug 13, 2015 · 11 comments
Closed

No events being logged on the Android version #21

manuelpaulo opened this issue Aug 13, 2015 · 11 comments

Comments

@manuelpaulo
Copy link

You say: "Activation events are automatically tracked for you in the plugin."
Meaning you must be calling the AppEventsLogger.activateApp.

Problem is I am getting no events from the Android version.

This is an issue you inherited from the previous now deprecated version of this plugin since it had the exact same problem.

Instead, I get this message from FB:

Why am I seeing this message: "Your app’s using an older version of the Android SDK and may not count all installs. Update your app to use the latest Android SDK."?

If you are using version 3.19.0 or earlier of the Facebook Android SDK, there is an issue with counting all installs. We recommend upgrading to the latest version of the Facebook Android SDK. This guide walks through updating to the latest version of the Android SDK.

@jeduan
Copy link
Owner

jeduan commented Aug 18, 2015

You're correct. Feel free to send a PR

On Mon, Aug 17, 2015 at 11:52 PM manuelpaulo [email protected]
wrote:

You're calling AppEventsLogger.activateApp onResume only, not
onDeviceReady. Am I wrong?


Reply to this email directly or view it on GitHub
#21 (comment)
.

@manuelpaulo
Copy link
Author

Well I don't know what's wrong with your plug-in, but I used a workaround in my app and added this to MainActivity.java

 @Override
    protected void onResume() {
        super.onResume();
        com.facebook.appevents.AppEventsLogger.activateApp(this);
    }

    @Override
    protected void onPause() {
        super.onPause();
        com.facebook.appevents.AppEventsLogger.deactivateApp(this);
    }

This works.

@manuelpaulo
Copy link
Author

Here: influencemobile@837ed2e

@hirbod
Copy link
Collaborator

hirbod commented Sep 1, 2015

ping

@mpochron
Copy link

mpochron commented Sep 1, 2015

pong

@manuelpaulo
Copy link
Author

???

@jeduan
Copy link
Owner

jeduan commented Sep 2, 2015

I've been very busy with the day job, if you can send a PR, I'll gladly
accept it, otherwise, it's a matter of waiting for the waters to be more
calm.

On Tue, Sep 1, 2015 at 7:51 PM, manuelpaulo [email protected]
wrote:

???


Reply to this email directly or view it on GitHub
#21 (comment)
.

@DURK
Copy link

DURK commented Oct 21, 2015

Any progress on this? @manuelpaulo I don't see how that piece of code fixed your problem, as this is exactly what is done in the plugin.

Update Like you said, the original plugin had the same issue. I got this to work by manually logging the activation event, as suggested here.

@jeduan
Copy link
Owner

jeduan commented Feb 5, 2016

v1.6.0 introduced a way to manually send activation events. https://github.com/jeduan/cordova-plugin-facebook4#manually-log-activation-events

@jeduan jeduan closed this as completed Feb 5, 2016
@monove
Copy link

monove commented May 10, 2016

Any update on having all events available, not just activation?

@jeduan
Copy link
Owner

jeduan commented May 10, 2016

No updates in sight. This is a good first pull request if you want to take a stab at it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants