PiStatsMobile icon indicating copy to clipboard operation
PiStatsMobile copied to clipboard

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

Open nullauspicious opened this issue 4 years ago • 2 comments

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

nullauspicious avatar Oct 27 '20 04:10 nullauspicious

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.

sbiggerstaff avatar Feb 27 '21 01:02 sbiggerstaff

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

insidegui avatar Jul 07 '23 21:07 insidegui