My BlackBerry app uses BrowserSession to open a web page. When the web page opens, the user will enter their login credentials, and then redirected to a new website that tells them to close the BlackBerry browser and return to my application. (... OAuth authentication)
Now I'm trying to check if I can do one of the following:
Create a custom URI scheme for my application so that the website can redirect the address, for example "myapp: // ...", and my application will open. I study online and in forums about this, and I don't think it is possible. I searched a lot for JSR 211 and content handlers and MIME types. I also watched the demo version of chapidemo in the JDE examples.
Close BrowserSession. I know that I can not do this from my application. I successfully brought my application to the fore after the application made a successful HTTP request, but the browser comes to the fore when the website goes to a new page (which tells the user to close the browser)
Somehow determine the url of the current BrowserSession. If I could do this, then I could use the application in the foreground when I find out the URL of the page to which it was sent.
Unfortunately, I cannot use BrowserField because the site that I open in the browser must support javascript and ajax ... I tried this in BrowserField and it did not work.
Does anyone have any tips or suggestions?
Thank!
Update:
My registration code is:
BrowserContentProviderRegistry converterRegistry = BrowserContentProviderRegistry
.getInstance();
if (converterRegistry != null) {
converterRegistry.register(new BrowserPlugin());
}