Go to
/node-v0.10.29/ionicnew/platforms/android/src/com/ionicframework/< you package name>
then open CordovaApp.java
insert below line of code:
CookieManager.setAcceptFileSchemeCookies(true);
in onCreate() method like:
super.onCreate(
savedInstanceState);
setAcceptFileSchemeCookies( true);
/node-v0.10.29/ionicnew/platforms/android/src/com/ionicframework/< you package name>
then open CordovaApp.java
insert below line of code:
CookieManager.setAcceptFileSchemeCookies(true);
in onCreate() method like:
super.onCreate(
super.init();
CookieManager.
// Set by <content src="index.html" /> in config.xml
super.setIntegerProperty(" splashscreen", R.drawable.screen);
super.loadUrl(Config. getStartUrl());
and import following package
import android.webkit.CookieManager;
Excellent information with unique content and it is very useful to know about the information based on blogs.this is valuable information for learners.thanks
ReplyDeleteAngularjs Training In Hyderabad
dont work when app run in device
ReplyDeleteWhat the error? please put in comments.
DeleteYou're a genius!!!
ReplyDeleteThanks You so so so much!
I followed your steps and It works very good!
The only comment is that I found a file called MainActivity.java, not CordovaApp.java
So, It´s my final code:
import android.os.Bundle;
import android.webkit.CookieManager;
import org.apache.cordova.*;
public class MainActivity extends CordovaActivity
{
@Override
public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
// Set by in config.xml
CookieManager.setAcceptFileSchemeCookies(true);
loadUrl(launchUrl);
}
}
Thanks You again!
Best regards, HernĂ¡n!
Thanks, Appreciation motivates me to help.
Delete:)
Deleteyou r a god!
ReplyDeleteHappy to help :)
DeleteYou are great..
ReplyDeleteWill update more content to help :)
Deletehow to check if cookies received?
ReplyDeleteThis comment has been removed by the author.
ReplyDelete