Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70429

Ionic iCloud

$
0
0

@arunazhg wrote:

I am trying to generate iCloud token from iCloud container.

Is there any specific plugin to get a id from iCloudContainer. Like the below given code in swift

func iCloudUserIDAsync(complete: @escaping ( _ instance: CKRecord.ID?, _ error: NSError?) -> ()) {

let container = CKContainer(identifier: “iCloud.com.test.SampleApp”)

// let container = CKContainer.default()

container.fetchUserRecordID() {

recordID, error in

if error != nil {

print(error!.localizedDescription)

complete( nil , error as NSError?)

} else {

//print(“fetched ID (recordID?.recordName)”)

complete(recordID, nil )

}
}

Is there any procedure to use iCloud in ionic?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70429

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>