Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iCloudKV Cordova 3.7.0 with Telerik AppBuilder #5

Open
cambooth opened this issue Jul 22, 2015 · 0 comments
Open

iCloudKV Cordova 3.7.0 with Telerik AppBuilder #5

cambooth opened this issue Jul 22, 2015 · 0 comments

Comments

@cambooth
Copy link

Having trouble attempting to use this plugin. Cannot rule out my stupidity :) Essentially we have an existing application in the App Store using Xamarin. We have redone the same application in Telerik AppBuilder and need to read an iCloud variable about their subscription that we set using the Xamarin version. After the DeviceReady fires, I have the following code executed:

        if (window.navigator.simulator !== true) {
            iCloudKV.sync(function(value) {
                alert("sync: " + JSON.stringify(value));
            }, function(value){
                alert("sync failure: " + value);
            });
            iCloudKV.save("testfree","boo",function (value) {
                alert("save: " + value);
            });
        }

The value is never set, and I also get a 'synchronise failed' when running the sync. When I change it from Cordova 3.7.0 to 3.5.0 to the save returns an 'OK' instead of a null value, but sync still says 'synchronise failed'. Sometimes it doesn't fail during the sync, but the value is {}

Any help would be much appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant