Deeplink is only working with custom scheme not HTTPS - ionic-framework

I´m currently working with Ionic 5 and trying to add a deeplink functionality for activating and account or resetting a password.
My current solution is working in general but only with my custom scheme but not with HTTPS. Maybe I got something wrong but I want the user to click on an HTTPS link which comes in via mail and open the app instead of the browser with Https. I tested in a codepen and it´s working with myScheme://myurl.com/user/activate?link={linkGuid} but not with https://myurl.com/user/activate?link={linkGuid}.
Here is my config.xml:
<plugin name="ionic-plugin-deeplinks" spec="1.0.24">
<variable name="URL_SCHEME" value="myScheme" />
<variable name="DEEPLINK_SCHEME" value="https" />
<variable name="DEEPLINK_HOST" value="myurl.com" />
</plugin>
Any ideas what I could try to make it work?
Thanks in advance!
Cheers!

Related

How to redirect MVC app action calls to distant web api using IIS url rewrite

I have a website (.net core, compiled all in dlls, i.e. no views, no javascript available to modify) which I don't have the source code (was made by someone else who's no longer reachable) and my client wants a single page on this website that makes an ajax call to an action of a controller in this same app to be redirected to a new web api method.
So, for example, this page (_http://the-old-site.com/Home/Index) have a form with a field and a button. Upon entering some values in the form's field and pressing the button, a POST ajax call is made to _http://the-old-site.com/Home/Process passing the value to the action.
I'm trying to configure the url rewrite module so that instead of calling _http://host.com/Home/Process, it posts to _http://new-api-I-did.com/Process
Right now, my rule looks like this but it's never hit:
<system.webServer>
<rewrite>
<rules>
<rule name="redirect to api" stopProcessing="true">
<match url="/Home/Process" />
<action type="Rewrite" url="http://new-api-I-did.com/Process" />
</rule>
</rules>
</rewrite>
</system.webServer>
The api in itself works perfectly when testing it with Postman.
Everything works except for the rewrite. And I tried both rewriting and redirecting.
Thanks in advance.
EDIT
Got the rule working but now, what's being sent in the redirection is an OPTIONS instead of a POST and the form's data aren't sent... Not sure how I can do this anymore.

How do channels work exactly with AppFlow? App showing wrong build on first load

I built an app that I got into apple’s test flight and today I sent out the notifications to users to start beta testing, but for some reason it is showing the user the previous build. If the user closes the app and reopens the app it shows the current version.
In my config.xml file I have defined
<plugin name="cordova-plugin-ionic" spec="5.2.8">
<variable name="APP_ID" value="9dab4a60" />
<variable name="CHANNEL_NAME" value="Master" />
<variable name="UPDATE_METHOD" value="auto" />
<variable name="UPDATE_API" value="https://api.ionicjs.com" />
<variable name="MAX_STORE" value="2" />
<variable name="MIN_BACKGROUND_DURATION" value="30" />
</plugin>
Is something wrong here? Not sure why this is happening. This also was happening to me when I was testing on my own device using a development provisioning profile. I had to always open the app once, close it and reopen it to see the new build. Any ideas?
Possibly when you first made the app the method should be background. So it downloads the updates and only updates on the next run.
The auto method checks the splash and installs immediately.
I also still have questions about the live deploy. In your case you have to generate a new package build. I realize that live deploy does not update when you add native plugin. Have you been through this?

Ionic iframe issue when opening an external link

I am trying to use an iframe inside my hybrid app. The iframe works perfectly, but it as some links inside that won't open when you click on them specifically when they are deployed to the iOS platform. It works in the browser view, but not in the iOS device. Is there a solution for this?
Put this in your confix.xml and try it.
<content src="index.html" />
<access origin="*" />

Seam redirection with condition based on EL

I have a seam web application.
During the user navigation I want to above the user to access again to login page, after successfull login.
When user is log-in successfully it is redirected to home.xhtml page.
If (after login) the user type again the url of login page I want to redirect it automatically to home.
I tried with Seam pages.xml:
<page view-id="/common/jsp/login.xhtml">
<navigation>
<rule if="#{myUserBean.isUserAlreadyAuthenticated()} ">
<redirect view-id="/home.xhtml"/>
</rule>
</navigation>
but it doesnt' work. Probably because Seam manual specify:
Rules work by evaluating the return value of the action method; it is
not possible to evaluate an arbitrary EL expression.
But in my case it doesnt'come from any specific action, the user is asking for login page from an already logged session, where he can have alredy did a lot of actions, or also no one.
Do you have any suggestion?
I should have solved in this way:
<page view-id="/common/jsp/login.xhtml" action ="#{myUserBean.isUserAlreadyAuthenticated()}">
<navigation>
<rule if-outcome="true">
<redirect view-id="/home.xhtml"/>
</rule>
</navigation>

How can I convert http code to https?

I want to add a chat box in my facebook fan page but the embed code examples start with http but facebook allows only https.
how i can change below embed code to https.
I m using iwipa application for page building.
<embed align="middle" allowscriptaccess="sameDomain" flashvars="id=163365836"
height="405" name="chat" pluginspage="http://xat.com/update_flash.shtml"
quality="high" src="http://www.xatech.com/web_gear/chat/chat.swf"
type="application/x-shockwave-flash" width="520"></embed><br />
<small><a href="http://xat.com/web_gear/?cb" target="_BLANK">
Get your own Chat Box!</a>
<a href="http://xat.com/web_gear/chat/go_large.php?id=163365836"
target="_BLANK">Go Large!</a></small>
You will need to acquire an SSL Certificate and then set it up on your server.