Skip to content

Different lifecycle tracking behaviours #481

Open
@Vacxe

Description

@Vacxe

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions