기본 콘텐츠로 건너뛰기

라벨이 hybrid인 게시물 표시

mobile push length limitations

mobile push length limitations android  gcm : 4k     https://developer.android.com/google/gcm/server.html#params  c2dm : 1024byte  https://developers.google.com/android/c2dm/#limitations ios  256byte  https://forums.aws.amazon.com/ann.jspa?annID=2626  ios 8 2k ref : http://stackoverflow.com/questions/9487223/what-is-the-maximum-number-of-characters-that-can-be-displayed-in-android-push-n

allow ajax header in Android webview and ios uiwebview

my application is hybrid app. both android and ios works. local contents is loaded in apps. and add additional headers ajax server call. In my work around , server modification not allowed. local-content ajax add header. (ref http://stackoverflow.com/questions/3258645/pass-request-headers-in-a-jquery-ajax-get-call ) $ . ajax ({ url : "/test" , headers : { "X-Test-Header" : "test-value" } }); Android webview setting ( ref : http://stackoverflow.com/questions/8648616/webview-javascript-cross-domain-from-a-local-html-file ) Initialize your WebView: WebView _webView = ( WebView ) this . findViewById ( R . id . id_of_your_webview_in_layout ); get WebView settings: WebSettings settings = _webView . getSettings (); set following settings: settings . setJavaScriptEnabled ( true ); settings . setAllowFileAccessFromFileURLs ( true ); //Maybe you don't need this rule settings . setAllowUniversalAccessFromFileUR...

android webview onPageFinished javascript life cycle

*고려 사항 현재 프로젝트는 onResume후에 webview가 실행된 후 webview에 javascript를 호출 해야 하는 상황이다. 인텐트로 갈때 => 1. 처음이면 onPageFinished 에서 호출   1.1 홈스크린 아이콘에서 실행      onCreate -> onStart -> onResume   1.2 다른앱이나 위젯에서 intent 바로 실행 2. 백그라운드 실행 상태일때 다시 앱전환 되면 중지 되었다 갈때 onPause -> onStop -> onRestart -> onResume onPause -> onResume onResume에서 처리 해야 함 고찰 결과 onPageFinished ================================ if ( mIsFirst == true ){         doSomething();         mIsFirst = false ; } @Override     protected void onResume() {         super .onResume();         Log.i( TAG , "onResume" );         if ( mIsFirst == false ){               doSomething();         }              } * reference http://stackoverflow.com/ques...

iscroll galaxy s performace issue

using iscroll in android 2.3.2 1.try translateZ(0);  .listview, .listview * {translateZ(0);} Instead, if, say, your list is made of LIs: .listview li {translateZ(0);} 2. remove * in css rules 3. remove rounded corner.  According to #6, this is maybe wrong. It seems that a list of items is very slow regardless of the amount of list items So, knowing this, I worked on the assumption that there were some rendering kinks. Firstly, I removed the rounded corners, which didn't do anything for performance. Then I started removing the box-shadow and text-shadow. After applying some overrides, performance is now good. It's not great, but it's at least usable. Everything seems to run more smoothly, even transitions. I'd say that removing shadows gave me a performance boost of at least 100%. Which to me makes it worth it (even though it looks a little less nice). 4. text-shadow none  ??? According to #6, this is maybe wrong.  Copy code * { ...