Bunn / PiStatsMobile

Pi Stats for iOS
67 stars 3 forks source link

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

Open nullauspicious opened 3 years ago

nullauspicious commented 3 years ago

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 commented 3 years ago

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 commented 1 year ago

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