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

Missing info in getting started #8

Open
Prometheus0406 opened this issue Jan 15, 2024 · 0 comments
Open

Missing info in getting started #8

Prometheus0406 opened this issue Jan 15, 2024 · 0 comments

Comments

@Prometheus0406
Copy link

Missing Info.plist update

This is more a suggestion than an issue.
Within the getting started section of this repository it doesn't mention making any changes to the Info.plist file.

When trying to setup this package I go the following console logs :

 LOG  Printer could not be accessed
 LOG  Printer is dead [Error: A problem occured when trying to execute discoverPrinters]

After observing the changes in Info.plist and updating the one for my project the issue resolved itself. However it isn't immediately clear that this error is to do with missing usage requests so an update to the getting started would be helpful.

Changes needed for this repository

These are the differences I noted between the Info.plist generated by react on my project and those in the example directory

// Info.plist changes
<key>NSExceptionDomains</key>
<dict>
       <key>localhost</key>
	<dict>
	        <key>NSExceptionAllowsInsecureHTTPLoads</key>
		<true/>
	</dict>
</dict>

<key>NSBonjourServices</key>
<array>
	<string>_pdl-datastream._tcp</string>
	<string>_printer._tcp</string>
	<string>_ipp._tcp</string>
</array>
<key>NSLocalNetworkUsageDescription</key>
<string>$(PRODUCT_NAME) needs access to use local network</string>

Note : The NSExceptionDomains key may not be necessary for this package to function as intended, these are just the differences I observed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant