Ionic2 open other Ionic2 app via yourapp:// then froze - ionic2

Hi I have been using Ionic2 (App A) to call other Ionic2 App (App B) to via <a href="otherapp://> It could be call successfully sometime but most of the time it stuck at loading page.
My current solution is instead of App A Called App B I use App B Call app A then let App A call back to App B but is there a better way to solve this solution
here is video of how it's look like when stuck
https://youtu.be/jeaggXPkZjI

Please check below attached plugin, its better to use - Custom-URL-scheme
Also you can use deep linking plugin from ionic 2
https://blog.ionicframework.com/deeplinking-in-ionic-apps/

Related

Is there a way to use the python model "webbrowser" with Heroku?

I am working on deploying a django app to heroku and I am having trouble with the webbrowser module. The function initially creates a pdf from html using pdfkit (this part works fine). Afterwards, I use '''webbrowser.open_new_tab''' to render the pdf in a new tab. This works perfectly locally, but not when I deploy to Heroku :( I checked the Heroku log, and it indicates that the pdf is being properly compiled and that the webbrowser command is successfully called, but alas, a new tab is not opened... Are there any suggestions on how best to tackle this issue? Perhaps I am missing an important environment variable that allows me to open new pages on the user's browser?
Thank you,
-- Carter

Ionic 2 - Open external pdf inside my app

I have some pdf file links on my app, and I wanna the user be able to open/read then inside my app. Is it possible? Is there any easy way to do that? Thanks!
EDIT:
Until now, I'm using regular link, like this:
<a href="{{conta.link_conta}}" *ngIf="conta.link_conta">
But in that case, it opens on the external browser (chrome for android, in my test). I would like to open it inside my own app, kinda like facebook, instagram, twitter and some other apps do
Didn't try it, but can't you use InAppBrowser plugin
https://github.com/apache/cordova-plugin-inappbrowser
Set the target as '_self',

Open link using system browser using InAppBrowser

I am using Ionic 2 and want to open a PDF file from a remote server using the device's default browser. I have a couple of problems:
First, I am unable to run this on the browser. I get this error:
Native: InAppBrowser is not installed or you are running on a browser. Falling back to window.open.
The ionic docs seem to indicate support for all devices and browsers. Am I doing something wrong or the docs are wrong?
Secondly, when I run the app, the PDF file does not open in the system's default browser but within the app. I am using Ionic View to do the testing. Here is my code:
import { InAppBrowser } from '#ionic-native/in-app-browser';
constructor(public appGlobal: AppGlobal, private iab: InAppBrowser) {
const browser = this.iab.create('www.google.com', '_system');
browser.show();
Also, if I change the URL to my php script that generates and returns a PDF file, it does not work at all.
To use the device's default browser, you don't need to use the IAB. You just need to open a new window with _system. Your device will do the rest.
window.open(url, '_system');
You can also do what you're doing if you want to keep the IPB, just omit the open function.
Adding the _system target means you don't need to do this anymore as it crashes the app.
uninstall inappbrowser plugin and simply try this:
window.open(pdf_url, '_system', 'location=yes');
When you use _system browser, it's not necessary use browser.show()
this.iab.create('www.google.com, '_system');

Using Ember.js in Existing Application

I've done some example apps in Ember, and now I'm ready for using it in existing application. Its traditional web application (request-response, full reload and some ajax loaded content, no rest/api things)
So lets assume I've few page (urls) like
1 abc.com/home.php
2. abc.com/support.php ,
3. abc.com/support.php?call=meeting
and so on..
so is it possible to use just one url with ember app and rest leave as such untill its ready?
PS: I did try for support.php as this.route("support",{path:"/support.php"}) and have SupportController and support.hbs template but its not working. I'm not sure how to put it in jsfiddle.
Thanks
Include your ember app only on the page that needs it, so only on abc.com/support.php
As far as ember can see, when you go to abc.com/support.php you are on the index page (of the ember app), and you will need to use the index.hbs tempate.

Registering an achivement

I'm trying to learn about facbeook achievements, so i made the achivement URL but now when i'm trying to register it i'm getting :
"(#15) This method is not supported for native apps",
i comlpetely removed the native iOS section from my app's definition on facebook but it still won't let me register. any ideas?
Oded
See the following links:
creating test users - method is not supported for native application
http://forum.developers.facebook.net/viewtopic.php?id=90782
Also ensure your app is registered as a "game".