I need to build deep-links that can land a user to a specific page and context inside a Backendless mobile app (built using the Flutter mobile app shell)
Here is what already works and what I am looking to do :
I have configured both AndroidManifest.xml and iOS Xcode configuration files so that deep-linking works with the base URL (such as https://myapp.mydomain.com). This launches the app on the defined main page.
I am looking to open the app into a specific place, i.e. page and parameter included, such as UrlEncode(/index.html?page=mypage&data={“param”:“value”}).
Where do we stand on this subject ? I had first asked the question back in June and I will really need this feature soon : when providing notifications to a user, they expect to land in the right place in the app, not on the home page.
Yes you can achieve it now(So far only for iOS ). Steps to implement:
When your app is launched you need to register device for push notification(after user login in your case, I mean).
After that you must to add listener for on tap push action.
This block called from this line. Additionally, implementation of this block. You can change name of event if you need or something else.
Then in implementation of this event(UI Builder side), you need to add blocks Go To Page that redirect you to page that you need.
This is implementation of event that redirect user to another page when he taps on push notification.
We don’t have a firm date yet for when this issue will be fixed. But this issue has a high priority, and will be fixed as soon as the developer is done with the current tasks.
OK, so I have spent some time on this one and I haven’t managed to get it to work.
Step 1 is OK, my device appears as registered in the DeviceRegistration table.
It’s not really clear to me what I have to do in step 2 : my code has exactly the lines you point to in both web_view_container.dart and bridge_ui_builder_functions.dart. Should I be changing anything ? Sorry, it’s not really clear.
Then in step 3, based on what you’ve shown, here is what I implemented.
I have then launched the app, clicked on the button that launches this logic. And I have tried deep links with the following URL parameters :
?page=test
?data%3D%7B%22page%22%3A%22test%22%7D
I don’t really know what exact format is expected but none have seemed to work. I have not been taken to the test page when clicking on the deep link.
I accept your proposal to help a bit more
Thanks !
The Snapshotting lines happen when I switch over to my browser, then click on the deep link. Each time it returns to the running app, but no change of page.
Here is the logic used, with the default print lines.
I launched the app via flutter run as described above.
Should I try to build it entirely and install it on the phone ?
If I install it on the phone, will I be getting log info into the IDE ?