Thursday, June 30, 2016

PERINGATAN KALAU GUNA cordova-plugin-crosswalk-webview

PERINGATAN KALAU GUNA cordova-plugin-crosswalk-webview

1) Mesti guna cordova-plugin-crosswalk-webview 1.3.1 "Crosswalk WebView Engine". Versi lain ada banyak masalah pada phone X86.
COMMAND : cordova plugin add cordova-plugin-crosswalk-webview@1.3.1

2) Guna cordova 4.1.1 pun dah ok. Kalau nak guna versi latest, upgrade apps :
COMMAND : cordova platform update android

Kalau nak guna versi lama :
COMMAND : cordova platform update android@4.1.1

3) Kalau dah guna cordova versi terbaru, & ada masalah nak compile sebab guna class API bawah 23, refer ini:


if you are using target sdk as 23 add below code in your build.gradle

    compileSdkVersion 23
    buildToolsVersion '23.0.1'
    useLibrary  'org.apache.http.legacy'
and change your buildscript to

classpath ''

Saturday, May 21, 2016

Building combined armv7/x86 apk after Crosswalk integration in an Ionic project


down vote
I have added Crosswalk to my ionic project. When i do ionic build android it outputs two separate APK files, one for armv7 and one for x86.

However i want one single apk file bundling two architectures together.

I tried setting BUILD_MULTIPLE_APKS = false but it's still building two separate apks.

There is a post here saying :

Took me a minute but you can get the single build file by commenting out the cdvBuildMultipleApks=true line in the platforms/android/

But i don't have any file in my platforms/android/ folder, i have a file and there is no cdvBuildMultipleApks=true line in it to comment out.

I tried to manually create a file and putting cdvBuildMultipleApks=false in there but still two outputs.

Any ideas how to achieve this?


My Cordova version is 5.1.1


What did work for me as suggested by @mudasserajaz and here, was to :

Create a file named build-extras.gradle inside my /platform/android/ directory.
put ext.cdvBuildMultipleApks=false inside it.
ionic build android --release then and Voila, it worked.
@mudasserajaz suggested the same thing except variable name is cdvBuildMultipleApks=false so in case it didn't work out for you, don't forget the ext

Wednesday, May 11, 2016

Securing a Cordova Hybrid Mobile App


Saturday, March 26, 2016

QRCode : Cordova + PHP

Ni rujukan utk generate image QRCOde mengggunakan PHP.

Ni rujukan nak generate imej QRCode guna plugin cordova di mobile device.

Cara utk call scanner dan baca imej QRCode menggunakan plugin cordova di mobile device.

Tambah plugin :

cordova plugin add phonegap-plugin-barcodescanner
function scan()
        function (result) {
                if(result.format == "QR_CODE")
                    alert (result.text);
        function (error) {
            alert("Scanning failed: " + error);
Boleh  guna konsep ni utk authenticate/pairing macam web whatsapp atau lain-lain keperluan. :)

Friday, March 25, 2016

App rejected because of “Missing Push Notification Entitlement”

Problem :
Recently my application got rejected while uploading it. The Apple review team says my app is "Missing Push Notification Entitlements"
This is the information they have provided: 
Missing Push Notification Entitlement - Your app registers with the Apple Push Notification Service, but the application signature's entitlements do not include the required "aps-environment" entitlement. Make sure you have enabled Push Notification Services for this app, and that you have downloaded a Distribution provisioning profile that includes the "aps-environment" entitlement.

Solutions :
If you are submitting a Cordova / Phonegap project and you are NOT using push notifications, you should inspect Classes/AppDelegate.m for the two methods below. Observed in Cordova 3.7.0, not sure about other versions.
Make sure you are not using remote notifications in any other way (carefully check your plugins as well). Then remove or comment out the following block:

- (void) application:(UIApplication*)application
    // re-post ( broadcast )
    NSString* token = [[[[deviceToken description]
        stringByReplacingOccurrencesOfString:@"<" withString:@""]
        stringByReplacingOccurrencesOfString:@">" withString:@""]
        stringByReplacingOccurrencesOfString:@" " withString:@""];

    [[NSNotificationCenter defaultCenter] postNotificationName:CDVRemoteNotification object:token];

- (void) application:(UIApplication*)application
    // re-post ( broadcast )
    [[NSNotificationCenter defaultCenter] postNotificationName:CDVRemoteNotificationError object:error];
Hope this saves you a few hours ;-)

Reference :

Thursday, March 24, 2016

Missing required icon file (IOS)

Missing required icon file. The bundle does not contain an app icon for iPhone / iPod Touch of exactly '57x57' pixels

I was trying to update my app in Appstore and I have started to receive this failure message. I checked over the internet for any solution, but none of them work. I have not changed my icons so this failure should not appear at all. 
I have checked the plist file, but always the same issue. The bundle is theoretically missing two icons 57x57 and 72x72 sizes.
Renamed icons and setup the whole icons package in the project, still the same issue

I ran into this same problem using xCode 5 - all the icons are there and appear correctly on the corresponding devices, but the validation fails. After some experimentation, I found that the following steps will resolve the common causes:

1) Ensure the correct filenames are used

The legacy icons need to follow a specific naming scheme (for apps supporting iOS 6.x and lower):

 57 x  57 --> Icon.png        (iPhone)
114 x 114 --> Icon@2x.png     (iPhone Retina)
 72 x  72 --> Icon-72.png     (iPad)
144 x 144 --> Icon-72@2x.png  (iPad Retina)
Note that iPad icons are called Icon-72. Icon~iPad, which worked in the past, doesn’t work any more (at least, not for me - it generates the same error that you reported).

The naming scheme for icons needed in iOS 7 and later is:

120 x 120 --> Icon-60@2x.png  (iPhone Retina)
 76 x  76 --> Icon-76.png     (iPad)
152 x 152 --> Icon-76@2x.png  (iPad Retina)
The easiest way to update the names is to click on them in the file browser in xCode and rename them directly there.

Source of filenames:

2) Check that the Project file has detected all the icons

Click on your project file in xCode, and make sure the App Icons section has picked up each of the files. If not, manually select them. If you cannot select the icon file, it’s likely that the dimensions aren’t correct. You can check this by selecting the file in Finder, and pressing CMD-I to Get Information, and look at the dimensions under More Information.

3) Make sure that the plist has the right info

Click on your ProjectName-Info.plist file, and check the array underCFBundleIcons~ipad/CFBundlePrimaryIcon/CFBundleIconFiles. It should contain 4 entries: Icon-72, Icon-72@2x, and the names of your iOS7 icons. If there are any extra entries (e.g. for the old icon filenames), remove them by pressing the - button. If they stay there, validation will fail when it's unable to find the corresponding files.



MyBlogList I

MyBlogList II

MyBlogList III

  • Salam - Macam dah ada banyak masa nak beramah-mesra dengan makhluk bumi macam dahulu kala. Assalamualaikum semua!
    1 year ago
  • Rahsia Burung Helang - Korang perasan tak, setiap kali kita tengok gambar burung helang ini, mesti gambar dia diambil dari posisi tepi. Bukan dari posisi depan. Perasan tak? Haa....
    2 years ago
  • Salam 2016 - Salam Jumaat untuk semua. Jumaat pertama pada hari pertama untuk tahun 2016 Semoga kita semua terus positif, ceria dan sihat selalu ye
    2 years ago
  • Senai–Desaru Bridge - The tolled expressway is a combination of a four-lane dual carriageway (Senai-Cahaya Baru section) and a two-lane single carriageway (Cahaya Baru-Penawa...
    5 years ago



  • CPL/ND8 ---> DONE
  • Tokina 11-16mm ---> DONE
  • LEP4 ---> DONE!
  • Bali
  • D700
  • Nikkor 70-200f2.8
  • C200

About This Blog


  © Blogger template 'Photoblog' by 2008

Back to TOP