Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Different lifecycle tracking behaviours #481

Open
Vacxe opened this issue Mar 18, 2021 · 1 comment
Open

Different lifecycle tracking behaviours #481

Vacxe opened this issue Mar 18, 2021 · 1 comment

Comments

@Vacxe
Copy link
Contributor

Vacxe commented Mar 18, 2021

Base on documentation

We need to implement

   @Override  
   public void onResume() {  
      MobileCore.setApplication(getApplication());
      MobileCore.lifecycleStart(null);
   }

and

   @Override
   public void onPause() {
      MobileCore.lifecyclePause();
   }

for each Activity classes on Android.

However for iOS

- (void) sceneWillEnterForeground:(UIScene *)scene {
   [ACPCore lifecycleStart:nil];
}

and

- (void) sceneDidEnterBackground:(UIScene *)scene {
   [ACPCore lifecyclePause];
}

 - (void) applicationDidEnterBackground:(UIApplication *)application {
    [ACPCore lifecyclePause];
 }

- (void) applicationWillEnterForeground:(UIApplication *)application {
    [ACPCore lifecycleStart:nil];
}

I think this two implementation will have a different behaviors.

For IOS library have a global application lifecycle tracking for Android doesn't.

Is it possible to track sessions similar with iOS way? Because each navigation between activities creating a new session on Android.

@praschetan
Copy link
Collaborator

@shalehaha , @sbenedicadb - can you take a look at this, please?

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

No branches or pull requests

2 participants