Hello,

There's a related issue marked as WontFix [1][2] but as far as I understand it 
does not apply to the SplashScreen plugin as it is initialized on startup (via 
<param name="onload" value="true"/>).
So the question is - should we add onRestart as it is not fundamentally 
different from onStart, which is supported?
Or is there a better/more correct way to do it?

[1]: https://issues.apache.org/jira/browse/CB-9620 
[2]: https://issues.apache.org/jira/browse/CB-9621 

Please let me know if you have any questions or considerations.

Best regards,
Sergey Shakhnazarov,
Akvelon developer.

-----Original Message-----
From: Sergey Shakhnazarov [mailto:dase...@apache.org] 
Sent: Thursday, January 12, 2017 12:10
To: dev <dev@cordova.apache.org>
Subject: CB-11602: (android) Adds onRestart event support

Hi guys,

I've investigated the CB-11602 Splashscreen plugin receives onPause and hides 
[1] and realized that the splashscreen plugin currently doesn't handle 
onStop->onRestart [2] events properly.
The reason is that we don't have the onRestart event in cordova-android so I 
propose to add it [3] and update the splash screen plugin code accordingly to 
handle this pause-resume events correctly [4] (i.e.
save/restore the splashscreen state on app switch/device lock).
Please take a look.

[1]: 
https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fissues.apache.org%2Fjira%2Fbrowse%2FCB-11602&data=02%7C01%7Cv-seshak%40microsoft.com%7Cb58575c22fb04ad3c29308d43acabe0f%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636198089826262946&sdata=ic0pYXcxfToH7eHWkPUktKDgm0aYMhHgfxqhJ8ECSsU%3D&reserved=0
[2]:
https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdeveloper.android.com%2Freference%2Fandroid%2Fapp%2FActivity.html%23onRestart&data=02%7C01%7Cv-seshak%40microsoft.com%7Cb58575c22fb04ad3c29308d43acabe0f%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636198089826262946&sdata=Ido%2FCxLiFO9fdJxCTb1HvIt9dBo%2BMtIjwUqo6%2FDyPaw%3D&reserved=0()
[3]: 
https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fapache%2Fcordova-android%2Fpull%2F353%2Ffiles&data=02%7C01%7Cv-seshak%40microsoft.com%7Cb58575c22fb04ad3c29308d43acabe0f%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636198089826272954&sdata=mMHBhAcWSuBXgWOVFSTyX8tV8cikEKfAO4hX95A7Zcs%3D&reserved=0
[4]: 
https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fapache%2Fcordova-plugin-splashscreen%2Fpull%2F120%2Ffiles&data=02%7C01%7Cv-seshak%40microsoft.com%7Cb58575c22fb04ad3c29308d43acabe0f%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636198089826272954&sdata=Xg5ldRRKYwlUGvbCWMUOzk2HIzWStMJze0jFTzif3A8%3D&reserved=0

Best regards,
Sergey Shakhnazarov,
Akvelon developer.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@cordova.apache.org
For additional commands, e-mail: dev-h...@cordova.apache.org

Reply via email to