Skip to content

Instantly share code, notes, and snippets.

@imReker
Last active November 12, 2024 23:59
Show Gist options
  • Save imReker/fba069c6cae7407509863b0ed78da2a7 to your computer and use it in GitHub Desktop.
Save imReker/fba069c6cae7407509863b0ed78da2a7 to your computer and use it in GitHub Desktop.
plist for Apple Watch to Enable ECG v2 and Atrial Fibrillation(IRNF)
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>EnableCardioFitnessNotifications</key>
<true/>
<key>EnableStationaryDiscordanceDetection</key>
<true/>
<key>EnableAtrialFibrillationDetection</key>
<true/>
<key>BradycardiaThresholdBPM</key>
<integer>45</integer>
<key>EnableBradycardiaDetection</key>
<true/>
<key>StationaryDiscordanceMinimumBPM</key>
<integer>120</integer>
</dict>
</plist>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CompletedBuddyVersion</key>
<integer>2</integer>
</dict>
</plist>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>ElectrocardiogramWatchAppInstallIsAllowed</key>
<true/>
<key>HKAtrialFibrillationDetectionOnboardingCompleted</key>
<integer>1</integer>
<key>HKElectrocardiogramOnboardingCompleted</key>
<integer>4</integer>
</dict>
</plist>
@ready750
Copy link

ready750 commented Jun 8, 2023

Work perfect for "ECG, Cardio fitness Notification, Irregular Rhythm Notifification,
only "AF History" that doesn't Work

@diegok3
Copy link

diegok3 commented Sep 8, 2023

I have IOS 16.6 and my plist is the following, for me is not working due that am I in a restricted country

<key>com.apple.private.health.heart-rhythm | UserDefaults</key>
                <dict>
                        <key>start</key>
                        <date>2023-09-06T17:45:36Z</date>
                        <key>end</key>
                        <date>2023-09-06T17:45:36Z</date>
                        <key>metadata</key>
                        <dict>
                                <key>HKElectrocardiogramV1ToV2UpgradeBackgroundDelivered</key>
                                <integer>53</integer>
                                <key>ElectrocardiogramWatchAppInstallIsAllowed</key>
                                <integer>43</integer>
                                <key>DemoResultKeys</key>
                                <integer>16</integer>
                        </dict>
                </dict>

@marko2904
Copy link

argggghh, I have to buy iMazing for just this one time use. did anyone successfully try this?

Did you find a free solutions?

@mhkefayati
Copy link

Works fine, thanks!
Any idea on how to enable the SpO2 measurement?

@The-Cyber-Thinkerer
Copy link

@imReker Does this let ECG, Irregular heart aler and Afib all 3 work on the new os ?

@vinixtor
Copy link

vinixtor commented Apr 10, 2024

Just wanted to confirm that at least ECG feature, works just great.
iOS 17.5
WatchOS 10.4 on an Ultra 2.

@fpereyrap
Copy link

@vinixtor are you in a non allowed ecg region? im thinking of doing this with an ultra 1 un Argentina

@jasuenine
Copy link

Can someone confirm if it works in watchOS 10.6 and iOS 18 ?

@jasuenine
Copy link

fpereyrap

Did it work for you ?

@vinixtor
Copy link

I did it while it was in iOS 17 and watchOS 10. Now, updated into Dev Beta, 18.1 and WatchOS 11 and still works. From Costa Rica!

@katofelinus
Copy link

katofelinus commented Nov 3, 2024

Does this works in Watch OS 11 and IOS 18.1? I found and replaced 2 of the 3 files downloaded, but I could not find the other in these version of IOS 18.1 and Watch OS 11. .

I found these 2 files and replaced them:
com.apple.heart-rate.notifications.plist
com.apple.heart-rate.plist

The other file IS NOT in Preferences in IOS 18.1 and Watch OS 11
com.apple.private.health.heart-rythm.plist

Should I add it anyway? Does anybody has enabled ECG in IOS 18 and Watch OS 11?

@vinixtor
Copy link

vinixtor commented Nov 4, 2024

As for my tests, it was applied with a previous iOS Version, iOS17 and WatchOS 10.  Right now, I'm using iOS 18.2 Beta 1 and WatchOS 11.1 and the ECG feature works.
I'm in a not allowed ECG feature region.
@vinixtor

@vinixtor
Copy link

vinixtor commented Nov 4, 2024

Will have to check if IOS 18.X has those 2 or 3 files.

@katofelinus
Copy link

Will have to check if IOS 18.X has those 2 or 3 files.

When I did it 2 years ago with Apple Watch Series 7 it was just 1 file (com.apple.private.health.heart-rhythm.plist).

Now, I have IOS 18.1 and Watch OS 11.1 in a Series 9. HomeDomain/Library/Preferences of the backup has only 2 of the 3 files downloaded in this post. It does not have the one I changed 2 years ago (com.apple.private.health-rhythm.plist).

If you have the time, please check if you have all 3 files in IOS 18.2 and WatchOS 11.1

Thanks

@vinixtor
Copy link

vinixtor commented Nov 5, 2024

Creating Backup now. Will check once it's done.

@vinixtor
Copy link

vinixtor commented Nov 5, 2024

OK, I did the backup, then the Editable Backup.... then going into HomeDomain>Library>Preferences. I do have all 3 files there. Not Sure if my App is bringing all 3 files since I started this thing back in iOS 17, but now, as for Today, Using iOS 18.2 beta 2,. I do have those 3 files.

I do have ECG feature working, but not AFib History. Not sure what else to check. I have not tried to replace all 3 files again, but I don't want to test that if I will get the same results as with ECG feature only enabled.

@vinixtor
Copy link

vinixtor commented Nov 5, 2024

No Oxygen feature working since using AWU2 Black edition

@vinixtor
Copy link

vinixtor commented Nov 5, 2024

BTW, just updated to WatchOS 11.2 Beta

@MN0X
Copy link

MN0X commented Nov 5, 2024

any updates

BTW, just updated to WatchOS 11.2 Beta

@chinaa108
Copy link

chinaa108 commented Nov 5, 2024

I Just used this on iOS 18.2 beta 2 and can confirm ecg is working, however afib history is not working. Devices used 16 pro max and ultra2

edit: ecg works on watch, however on the iPhone it’s showing that it’s not available on the watch.

@MN0X
Copy link

MN0X commented Nov 5, 2024

Did u use imazing for backup ?

@chinaa108
Copy link

yup

@katofelinus
Copy link

katofelinus commented Nov 5, 2024

OK, I did the backup, then the Editable Backup.... then going into HomeDomain>Library>Preferences. I do have all 3 files there. Not Sure if my App is bringing all 3 files since I started this thing back in iOS 17, but now, as for Today, Using iOS 18.2 beta 2,. I do have those 3 files.

I do have ECG feature working, but not AFib History. Not sure what else to check. I have not tried to replace all 3 files again, but I don't want to test that if I will get the same results as with ECG feature only enabled.

Thanks a lot for your help.

It could be that the 3rd file came from IOS 17. We still don´t know if it is needed in IOS 18 and WatchOS 11. I could try both options: replacing just 2 files or replacing 2 files and adding the 3rd.

It would be interesting to know it from ImReker

@chinaa108
Copy link

Question: can we get these plists from activated watches/phones in supported regions and copy them over?

@katofelinus
Copy link

OK, I did the backup, then the Editable Backup.... then going into HomeDomain>Library>Preferences. I do have all 3 files there. Not Sure if my App is bringing all 3 files since I started this thing back in iOS 17, but now, as for Today, Using iOS 18.2 beta 2,. I do have those 3 files.

I do have ECG feature working, but not AFib History. Not sure what else to check. I have not tried to replace all 3 files again, but I don't want to test that if I will get the same results as with ECG feature only enabled.

Ok. I did the editable backup with iMazing, replaced 2 files and added the 3rd, restored to my iPhone and the ECG is NOT activated. Something changed from IOS 17 to IOS 18 that does no let us enable ECG with the 3 files that did it in IOS 17 and 16.

If somebody is able to enable ECG in IOS 18, please let me know how is done.

@katofelinus
Copy link

It would be great if @imReker could do a revision of this code for IOS 18 and WatchOS 11. Last revision was on March 2023 (IOS 16 and WatchOS 9

@MN0X
Copy link

MN0X commented Nov 12, 2024

@imReker @katofelinus Any happy news ? and please is it required that the apple watch to be bought from a concerned region ? thank uu

@katofelinus
Copy link

katofelinus commented Nov 12, 2024

@imReker @katofelinus Any happy news ? and please is it required that the apple watch to be bought from a concerned region ? thank uu

Unfortunately, no happy news. I could not activate ECG in IOS 18.1 and WatchOS 11 with the 3 files posted here. Something changed in IOS 18. ImReker has not answered yet. Hope he will. Regarding your other question, I understand you have to BUY & ACTIVATE the Apple Watch in an approved country, otherwise, it will not activate the ECG.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment