Skip to content
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

Question: how can I set custom image? #91

Closed
Pierlu1586 opened this issue Jun 27, 2024 · 7 comments
Closed

Question: how can I set custom image? #91

Pierlu1586 opened this issue Jun 27, 2024 · 7 comments
Labels
needs: reproduction needs: triage question Further information is requested

Comments

@Pierlu1586
Copy link

Hi everyone!
I'm trying to add a custom image but I always see black screen when I take a screenshot on IOS device.
Currently I have my custom image in "myProject/ios/App/App/Assets.xcassets/Splash.imageset/customImage.png" and I have edited capacitor.config.json (path: myProject/ios/App/App/capacitor.config.json) with:

	"PrivacyScreen": {
			"enable": false,
			"useImageBackground": true,
			"imageName": "customImage"
		}

Some informations.
I'm working on an angular/ionic project and I'm using capacitor-community/privacy-screen v.5.0.0
I change "enable" property in specific pages of my application.

Where am I doing wrong?
Any suggestions?

Thanks

@robingenz
Copy link
Member

Here you can find an example on how to use the imageName configuration property: https://github.com/robingenz/capacitor-plugin-demo/tree/main

@robingenz robingenz added question Further information is requested needs: reproduction labels Jun 27, 2024
@Pierlu1586
Copy link
Author

Thank you @robingenz for your answer.
I have created a new imageset folder for my custom image (with Contents.json e customImage.png) and I have changed capacitor.config.json.
Now I see my custom image in the upper-right corner but when I take screenshot I get black screen. :(

VID-20240627-WA0001.mp4

@robingenz
Copy link
Member

Please provide a Minimal, Reproducible Example using this template in a public GitHub repository so I can debug the issue.

@ZhipengZeng

This comment has been minimized.

@robingenz
Copy link
Member

@ZhipengZeng Your request is not related to this issue. Please create a separate feature request.

Copy link

It looks like there hasn't been a reply in 30 days, so I'm closing this issue.

@louis123562
Copy link

Here you can find an example on how to use the imageName configuration property: https://github.com/robingenz/capacitor-plugin-demo/tree/main

Hey guys, where exactly in your link do i find the documentation on how to generate the images / imageset for the custom image, which should be displayed in the app (on ios), when putting the app in background? It would als be very great if this would be in the docs of the plugin... not anywhere else.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs: reproduction needs: triage question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants