iink SDK on Device

[iOS] Getting 482 unrecognized file extension error when trying to export

 Hey! I'm trying to save the current state of the Part so the user can pick up where he left when he restarts my app.

I'm not completely sure I"m on the right track, but I found the functions "– export_:toFile:imageDrawer:error:" and "– import_:data:block:error:" on the docs and I was trying to work with them. The problem is I'm getting an unrecognized file extension as soon as the function is called. I tried using ".iink", ".txt", and a filename without extension.

Also, I'm not sure if the method is expecting just a filename, or a complete path url (also tried both, with the same result)



NSString* documentsPath = [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) objectAtIndex:0];
    NSString* filePath = [documentsPath stringByAppendingString:@"/test"];
    NSError* error;
    [self.editorViewController.editor export_:nil toFile:filePath imageDrawer:nil error:&error];



1 Comment

Dear Gonzalo,

thank you for your questions.

Currently, to save the content of a part, you can refer to the following documentation: https://developer.myscript.com/docs/interactive-ink/1.1/ios/fundamentals/storage/#saving-content

This should answer your questions.

Let us know if you need further help!

Best regards,


1 person likes this