Hi,
I'm having some strange issues. I can't work out if i've screwed up some code accidentally with sloppy fingers or if there's something else going on.
Basically, I want the permission granted before I continue with any further code execution (the initialize routine). However, this is what my screen grab looks like:
Looks like you have an issue with an empty variable or list you have created (these are set before Screen1.Initialise)
Your initialise event will not run second time after giving permission because no permission is granted. You will need to add more logic to handle this.
This sort-of works - I still has the "Bad arguments to length of list" on the first load (new install), but if I click "Allow", then "End Application" and then reload the app, everything works fine.
Okay, I appreciate that, but i'm struggling to find the error.
I'm also wondering why after the first loading of the app, and I allow permissions, that the app works fine? Maybe that will give me a clue of where to look.
If you remove everything from your Screen1.Initialise event, do you still get the bad arguments error ?
(Test with companion)
If you get no error, then put the blocks back, but then remove everything but the first item from your initialise procedure. If still no error add the second item, and so on.
If you get the error at some point, report back, or investigate.