03-29-2013 09:30 AM
Adding a notification like this:
var notification :Notification = new Notification(); notification.title = 'My Title'; notification.subTitle = 'My body'; notification.invokeAction = InvokeAction.OPEN; notification.invokeTarget = 'com.o2interactive.my.app'; var file :File = File.documentsDirectory.resolvePath( '../downloads/' + 'mynotify.unique.xml' ); // add data to file notification.invokeUri = 'file://' + file.nativePath;
When the notification comes in and it is opened from the hub, the uri for the invocated notification is:
And when testing if the file exists, it does not. So it is not referencing the same file URI that was provided to it. "isSymbolicLink" is false as well.
The only work around I see is to look for "invoke" in the URI, grab the file name and then get it from the saved location.
Any other suggestion?