You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am developing a Tweak with 'com.apple.corelocation' as the bundle filter.
My environment is as follows:
iPhone XS Max
iOS 15.1
Dopamine 2.0.11 rootless Jailbreak
I want to share settings between multiple apps (more precisely, between my Tweaks associated with each app) and am considering using HBPreferences for this purpose.
However, Read/Write operations with HBPreferences do not function correctly from Tweak apps tied to Sandbox apps.
As a sample implementation, I tried implementing simple settings read and write as follows:
With the exact same implementation,
For instance, when the Tweak is linked to jailbreak apps like Filza or Sileo, or a jailbreak settings app I created, doubleForKey and setObject can correctly perform read and write operations.
However, when the Tweak is linked to apps downloaded from the App Store, despite the settings values being present in com.test.myapp.plist, doubleForKey always retrieves the default value, and setObject is also ignored.
Is this behavior as per the specifications? Or is there any potential workaround?
The text was updated successfully, but these errors were encountered:
I am developing a Tweak with 'com.apple.corelocation' as the bundle filter.
My environment is as follows:
I want to share settings between multiple apps (more precisely, between my Tweaks associated with each app) and am considering using HBPreferences for this purpose.
However, Read/Write operations with HBPreferences do not function correctly from Tweak apps tied to Sandbox apps.
As a sample implementation, I tried implementing simple settings read and write as follows:
preferences = [[HBPreferences alloc] initWithIdentifier:@"com.test.myapp"];
[preferences setObject:[NSString stringWithFormat:@"%.2f", 100.0] forKey:@"speed"];
double speed = [preferences doubleForKey:@"speed" default:1.0];
With the exact same implementation,
For instance, when the Tweak is linked to jailbreak apps like Filza or Sileo, or a jailbreak settings app I created, doubleForKey and setObject can correctly perform read and write operations.
However, when the Tweak is linked to apps downloaded from the App Store, despite the settings values being present in com.test.myapp.plist, doubleForKey always retrieves the default value, and setObject is also ignored.
Is this behavior as per the specifications? Or is there any potential workaround?
The text was updated successfully, but these errors were encountered: