Redirect to custom url in webview ios 10 - uiwebview

I want to load below URL in ios 10.
js2ios://%7B%22functionname%22:%22setTER%22,%22success%22:%22onSuccess%22,%22error%22:%22onError%22,%22args%22:%5B%22DohOa8bA5jbgbkhDLBOZXXRx5ecJQGDuqJvUeVVGdQFNDXYR8SZN+3Mn2A0RIYzgX4D67DdTmo32%5Cnwu4KUHcumJ0DMB6sSQRsNCqXtlYXtWGKVA93u5jr0oCOizD0KNTy97uAy9thaUGiQZHqp4pg2/+iP8cqzjQAnnTkaJXoOtPZy%5CnzqCZI9qIhJksPzjEQXyF9khqNLzHeQois6r7LkJbhm2ia0RFHVF5zRhtBYzdNijewt0+VDSWgArM%5CnsYCi2843EJfZ5fwIjXNmD/Tt2dZb2YsJTsTLGi9lJvsWQP/Ki/Uj7b57OWBWO6kyLNdvC2Z1ndtj%5CndrCF1BAHa68tqRfpJqyVOKGfiz36q6ahQjArDS+WlNPSqIReyPVKmviRrpTQgkvpLmj05Raqy4BK%5Cndr08/jrPJp4=%22,%22T3239%22%5D%7D
The same URL is working in till ios 9.3.
I have added below key in info.plist .But still not able to load the above URL
<key>LSApplicationQueriesSchemes</key>
<array>
<string>js2ios</string>
</array>

Related

Encoding problem with ASP.NET Core MVC when uploading on IIS

I'm developing a website using ASP.NET Core MVC and Orchard Core. Right now I need to publish it on an IIS server. It works perfectly fine when using Visual Studio, but when I 'publish it' and then go on the website using the IP or the name, Firefox console tells me that :
The character encoding of the plain text document was not declared. The document will render with garbled text in some browser configurations if the document contains characters from outside the US-ASCII range. The character encoding of the file needs to be declared in the transfer protocol or file needs to use a byte order mark as an encoding signature.
or the same but instead of 'text', there is 'html'.
I have already went through those questions&answers:
Why am I getting a encoding error with my ASP.NET Core View?
The character encoding of the HTML document was not declared
And downloaded an extension called Fix Filed Encoding.
Here is my web.config :
My files on IIS :
My code for the _layout :
My Controller for the default page :
My startup.cs page :
And the error in firefox console (but in French) :
I observed the network of firefox and had this :
Could you help me or give me some hints
Thanks in advance !
So Orchard could not connect to the Databaseand could not recognize his own tables so I had to manually create them and it solved it.
Try to to set the responseEncoding attribute of the globalization element.
<configuration>
<system.web>
<globalization requestEncoding="utf-8" responseEncoding="utf-8"/>
</system.web>
</configuration>

Using Trusted Web Activity to link multiple websites with native application

I've managed to link my native application to a website and launch the same on a button click. As the website is trusted, the URL bar is not visible. In the launched website there is a button which then further redirects to another website. I've created a digital asset link for both and have added the JSON file in <websitename>/.well-known/<json-file>.
Both the websites have also been referenced in strings.xml under
asset_statements. However, on launching the first website and then redirecting to the second website from the first, the second website launches as a regular custom chrome tab with the URL bar visible.
Is it possible to hide both the URL's? If so, how?
To enable multi-domain, you need to check 3 things
Each origin has a .well-known/assetlinks.json file
The android asset_statements contains all origins
Tell the Trusted Web Activity about additional origins when launching.
It seems you have the first two points covered, but not the last one.
Using the support library LauncherActivity:
If using the LauncherActivity that comes with the library, you can provide additional origins by updating the AndroidManifest:
Add a list of additional origins to res/values/strings.xml:
<string-array name="additional_trusted_origins">
<item>https://www.google.com</item>
</string-array>
Update AndroidManifest.xml:
<activity android:name="com.google.androidbrowserhelper.trusted.LauncherActivity"
android:label="#string/app_name">
<meta-data
android:name="android.support.customtabs.trusted.ADDITIONAL_TRUSTED_ORIGINS"
android:resource="#array/additional_trusted_origins" />
...
</activity>
Using a custom LauncherActivity
If using your own LauncherActivity, launching with additional origins can implemented like this:
public void launcherWithMultipleOrigins(View view) {
List<String> origins = Arrays.asList(
"https://checkout.example.com/"
);
TrustedWebActivityIntentBuilder builder = new TrustedWebActivityIntentBuilder(LAUNCH_URI)
.setAdditionalTrustedOrigins(origins);
new TwaLauncher(this).launch(builder, null, null);
}
Resources:
Article with more details here: https://developers.google.com/web/android/trusted-web-activity/multi-origin
Sample multi-origin implementation: https://github.com/GoogleChrome/android-browser-helper/tree/master/demos/twa-multi-domain

How to Create custom App URL schemes for IOS using phonegap build?

I was searching for this problem since long time.finally i got the key answer.
How to create AppURL scheme for your own app.Here is the answer.
Simply use the following plugins into config.xml
<plugin name="cordova-plugin-customurlscheme">
<param name="URL_SCHEME" value="YourAppName" />
</plugin>
How to Get URL Scheme of any app?
-Right click on a app in iTunes, 'Show in Finder'
-Duplicate the app to Desktop
-Change .ipa to .zip
-Unzip and open the Payload folder
-Right click on app, 'Show Package Contents'
-Open 'Info.plist' in a text editor app like TextWrangler
-Search 'CFBundleURLSchemes'
-Between the tag you can find the URL

dotnetnuke cant open my page

Am trying to learn how to use dotnetnuke so am kinda new to it. I installed it correctly and i set up a user in server management studio. So when i try to open my page localhost\mypage i get these errors:
HTTP Error 500.19 - Internal Server Error
The requested page cannot be accessed because the related configuration data for the page is invalid.
Detailed Error Information:
Module IIS Web Core
Notification Unknown
Handler Not yet determined
Error Code 0x8007000d
Config Error Configuration section not allowed in a <location> tag
Config File \\?\C:\inetpub\wwwroot\ANTONISDB\web.config
Requested URL http://`localhost`:80/dotnetnuke
Physical Path
Logon Method Not yet determined
Logon User Not yet determined
Config Source:
210: </system.web>
211: <runtime>
212: <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
Anyone knows whats wrong with this?
Check to make sure the Application Pool for the virtual directory/application is configured to USE ASP.NET 4.0, DNN won't run with .NET 3.5 anymore (starting with Version 7)

favicon.ico not found error?

I have an application that uses Spring Security 3 runs on Tomcat. I didn't define any favicon for my website however when I run my application from my IDE sometimes after I login from my login pages it redirects my page to:
http://localhost:8080/favicon.ico
and says:
404 Not Found
There is a topic here: http://forum.springsource.org/showthread.php?100901-redirect-to-favicon.ico however I didn't define a favicon.ico does Spring Security 3 wants it by default(if yes, why it happens sometimes?)
Here is the explanation:
The issue is, when the browser cache is empty and a user comes in,
here is what happens:
the user requests URL "/". This URL is cached.
the browser makes a requests to "/favicon.ico". This URL becomes
the new URL where to redirect to upon authentication.
the user posts the login form and is redirected to "/favicon.ico".
To fix this, you need to set "/favicon.ico" as being a non-secured
resources:
<intercept-url pattern="/favicon.ico" access="ROLE_ANONYMOUS" />
Taken from: http://blog.idm.fr/2010/09/spring-security-redirecting-to-faviconico.html
For Grails 3.0.11 & Spring Security Core 3.0.2, add "IS_AUTHENTICATED_ANONYMOUSLY" in application.groovy in the section:
grails.plugin.springsecurity.controllerAnnotations.staticRules = [
...
..
.
[pattern: '/favicon.ico', access: ['IS_AUTHENTICATED_ANONYMOUSLY']]
]

Resources