yasirkula / UnityNativeShare

A Unity plugin to natively share files (images, videos, documents, etc.) and/or plain text on Android & iOS
MIT License
891 stars 131 forks source link

Game restarts after I share screenshot by email #11

Closed anhnguyenvn closed 6 years ago

anhnguyenvn commented 6 years ago

Hello,

I share screenshot of game using email app. My device is Amazon Fire 5th Generation. When I go back to game from email app (even sending or not sending email with attached screenshot), the game always restarts. Do you have any comment about the possible reason?

Thank you so much!

yasirkula commented 6 years ago

I'm not sure how old/powerful Amazon Fire 5th Generation is but on older Android devices, when device runs out of memory, applications that are running in the background (Unity) are stopped to free some memory. After the current application (email app) is finished, the most recent application (Unity) is restarted. This usually happens on my Samsung Galaxy S3, as well. This application lifecycle is controlled by the Android OS and I don't know a way to prevent this from happening yet.

For now, I can only suggest you to exclude old devices from your Google Play/Amazon Appstore listing.

anhnguyenvn commented 6 years ago

Yes I see. Thank you for you reply.