Skip to content

MAC: Passport initialisation #159

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

Closed
Sanselll opened this issue Jan 30, 2024 · 5 comments
Closed

MAC: Passport initialisation #159

Sanselll opened this issue Jan 30, 2024 · 5 comments
Labels
bug Something isn't working macos question Further information is requested

Comments

@Sanselll
Copy link

Sanselll commented Jan 30, 2024

Plugin v1.1.0, Unity 2022.3.15
Passport initialisation doesn't work in Mac build, works well in Mac Editor but doesn't work in the build.
Having this in logs:

 Passport:Initialising Passport...
 Passport:Waiting for ready signal...
@nattb8
Copy link
Collaborator

nattb8 commented Feb 1, 2024

Hi @Sanselll,

When building, what do you see in the Console? Our SDK includes a post-process script that copies certain files required to run the SDK. If the files are copied correctly to the build, you should see the message "Successfully copied Passport files" in the console output.

image

@nattb8 nattb8 added question Further information is requested macos labels Feb 1, 2024
@Sanselll
Copy link
Author

Sanselll commented Feb 1, 2024

Hi @nattb8
No errors
Screenshot 2024-02-01 at 08 46 28

.app content after build:
Screenshot 2024-02-01 at 08 51 17

@Sanselll
Copy link
Author

Sanselll commented Feb 1, 2024

The issue is that webview can't recognize the path to the "index.html" if the app name has whitespace.
Steps to replicate:
1. build an app with the name "Sample X.app"

Possible fix:

string escapedPath = filePath.Replace(" ", "%20");
          webViewObject.LoadURL(escapedPath);

@nattb8
Copy link
Collaborator

nattb8 commented Feb 1, 2024

Thanks @Sanselll. I've added the fix to v1.3.0. Please close this issue if it's working now.

@nattb8 nattb8 added the bug Something isn't working label Feb 1, 2024
@Sanselll Sanselll closed this as completed Feb 2, 2024
@BestStream
Copy link

@nattb8 Are you sure you solved the problem? Because I have a similar problem that reproduces on version 1.30.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working macos question Further information is requested
Development

No branches or pull requests

3 participants