B4J Question How to Open my App over a link over my B4J Server

Alexander Stolte

Well-Known Member
Licensed User
Hello,

on B4A side i know it from here.

But as long as I do not have a website that can show this, I want the app to run without the browser opening.

From Stackoverflow, from this post, i know it is possible.

Then, in your web app you can put links like:

B4X:
<a href="my.special.scheme://other/parameters/here">
How can i handle this with my B4J Server?
 

DonManfred

Expert
Licensed User
i know it is possible
this post is explaining how to do it in ANDROID. In Android you can register a scheme just by placing some Manifestentries.

On a B4J Server you need to register a new scheme in Windows to get it to work.
I don´t know if there is a library for b4j to do that.
 

OliverA

Expert
Licensed User
Are you trying to start a program on the machine your B4J server is or on the device that is accessing your B4J server?
 

Alexander Stolte

Well-Known Member
Licensed User
on the device that is accessing your B4J server
My App on the Device that accessing my B4J Server. Many websites have a button where "open now in the app" or open the app automatically.
Would be nice if this happens as soon as I enter the URL of a handler.
 

OliverA

Expert
Licensed User
happens as soon as I enter the URL of a handler.
Where is this "entering" happening? What exactly is the workflow that you are trying to accomplish? For example, maybe you're trying this:

Have an app on phone (one of your creation) talk to B4J server. Have server send URI to the phone app that the phone app then uses to start another app.

Or maybe you're trying to accomplish something else. What is the workflow?
 

Alexander Stolte

Well-Known Member
Licensed User
The idea behind them is: User share a Post in my app with a link, if a other user is clicking on this link, then my app is starting and open this post via my app. Of course assumes that the app is installed, I will fix this later with a web version of my app.
 

DonManfred

Expert
Licensed User
You are talking shout deeplinks.
I Published a wrapper for this.
It required a app in Playstore to do so.

The lib is here. (B4A)
 
Last edited:

DonManfred

Expert
Licensed User
Of course assumes that the app is installed
Check the lib in my last post.
It does even work if your app is NOT installed (but available in playstore). The user will forwarded to install the app in playstore and then your app gets started giving the deeplink.

Basically you are defining a url which your app must be able to "understand".
And you dont need a server app at all for this.
 
Top