readyplayerme / rpm-unity-sdk-webview

WebView helps you display an in-engine browser that helps you load RPM website where you can create avatars and receive avatar URL at the end of the process.
zlib License
13 stars 7 forks source link

Permission Request on App Focus #7

Closed srcnalt closed 1 year ago

srcnalt commented 1 year ago

4108899206

Description

Changes

Added

How to Test

Checklist

QA Testing

Details

HarrisonHough commented 1 year ago

4108899206

Description

* If a user loses app focus during the permission popup, it will be closed and upon return to the app, user will continue without permission which will result in the take a photo button not working.

Changes

Added

* Permission request in OnApplicationFocus method of WebViewBase.

How to Test

* Build WebView sample, open the WebView

* Obverse the permission popup

* Close the app. Do not shut it down but switch to mobile home page or other app.

* Return to the unity app and observe permission window missing.

* With the fix permission window will be appearing again.

Checklist

* [ ]  Tests written or updated for the changes.

* [ ]  Documentation is updated.

* [x]  Changelog is updated.

* [ ]  QA Testing is updated.

QA Testing

* Mention any useful test cases for this feature and add to QA Testing documentation.

Details

* If more details are necessary to support the description with images and videos add them here.

was unable to build for iOS, not sure if related to this PR though

Screenshot 2023-03-10 at 12 13 20