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

Widget doesn't populate pihole stats (iPhone 12, iOS 14.1) #7

Open
nullauspicious opened this issue Oct 27, 2020 · 2 comments
Open

Comments

@nullauspicious
Copy link

This issue persists through reboots and reinstallation. Let me know if you want me to grab logs with Xcode as well.

IMG_39863185CC00-1
IMG_07A4E6C9C77A-1

@sbiggerstaff
Copy link

The development environment for sharing data with the widgest requires some setup. I'm assuming you're using your own developer account to run this on device. The steps I carried out were:

  1. Creating custom bundle IDs for the intent, extension and main app.
  2. Creating a group ID.
  3. Generating provisioning profiles with the correct bundle ID.
  4. Adding the group ID to the App IDs created earlier.
  5. Regenerate the provisioning profiles with the updated App IDs.
  6. Configure Xcode to code sign with these new provisioning profiles in intent, extension and main app targets.
  7. Update the Group IDs in the "App Groups" section of each target for intent, extension, main app.
  8. Change Constants.swift to use the new group ID.
  9. Change PiMonitorWidget.swift to use the new intent bundle ID.
  10. Build and run all three targets on the device.

It should then be updated. It may take a clean build or a deletion of derived data before everything works but these are the steps I went through to get everything up and running correctly.

@insidegui
Copy link
Collaborator

Assuming the issue was due to the development setup, this is probably fixed by #9

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

3 participants