10.1 C
London
Wednesday, May 8, 2024

angular – With CapacitorJS Storage doesn’t work with IOS


Is there any separate setting for IOS after Could 1 for IOS to retailer the information?

I attempted two packages with Capacitor JS. Each are working earlier than 1st Could, or it is working as anticipated with Android. However now I checked in IOS, and it is not working.

  1. I attempted with SecureStoragePlugin
SecureStoragePlugin.set({
    key: 'MyKey',
    worth: JSON.stringify(knowledge)
});
  1. I attempted with Preferences
await Preferences.set({
      key: 'WiseOTTUser',
      worth: JSON.stringify(knowledge)
});

I added PrivacyInfo.xcprivacy file additionally

<?xml model="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist model="1.0">
<dict>
    <key>NSPrivacyAccessedAPITypes</key>
    <array>
        <dict>
            <key>NSPrivacyAccessedAPIType</key>
            <string>NSPrivacyAccessedAPICategoryUserDefaults</string>
            <key>NSPrivacyAccessedAPITypeReasons</key>
            <array>
                <string>CA92.1</string>
            </array>
        </dict>
        <dict>
            <key>NSPrivacyAccessedAPIType</key>
            <string>NSPrivacyAccessedAPICategorySystemBootTime</string>
            <key>NSPrivacyAccessedAPITypeReasons</key>
            <array>
                <string>35F9.1</string>
            </array>
        </dict>
        <dict>
            <key>NSPrivacyAccessedAPIType</key>
            <string>NSPrivacyAccessedAPICategoryFileTimestamp</string>
            <key>NSPrivacyAccessedAPITypeReasons</key>
            <array>
                <string>C617.1</string>
            </array>
        </dict>
        <dict>
            <key>NSPrivacyAccessedAPIType</key>
            <string>NSPrivacyAccessedAPICategoryDiskSpace</string>
            <key>NSPrivacyAccessedAPITypeReasons</key>
            <array>
                <string>85F4.1</string>
            </array>
        </dict>
    </array>
</dict>
</plist>

I attempted to search out out within the documentation. However no luck.
Is there any permission required to Set for IOS
Can Anybody counsel something you need to add to the setting or something you need to add?

Latest news
Related news

LEAVE A REPLY

Please enter your comment!
Please enter your name here