iOS Question Application_OpenUrl signature

Alessandro71

Well-Known Member
Licensed User
Longtime User
I've found a mismatch in Application_OpenUrl signature

Here it has 2 params:

While here it has 3:

Which one is the correct version, and how is "Data as Object" used?
 
Solution
The IDE knows best:

1756270602975.png

Apple changed the signature at some point. In order to retain backward compatibility both signatures work.

The source application can include additional data. This is mainly used with third party libraries where the Data object is passed to the library.

Alessandro71

Well-Known Member
Licensed User
Longtime User
can we assume that, in a B4XPages project, MainPage will always be already initialized when Application_OpenUrl is called, so we can delegate and handle it there?
 
Upvote 0
Top