Error: Cannot find module 'gulp-sass'

Uninstall and install gulp-sass

npm uninstall gulp-sass
npm install gulp-sass

Error: Node Sass does not yet support your current environment

Remove goclixy/node_modules folder then run npm install at project root

npm install

Execution failed for task ':transformClassesWithJarMergingForDebug'

Execution failed for task ':transformClassesWithJarMergingForDebug'. com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: org/apache/cordova/PermissionHelper.class

Re-install the COMPAT plugin as follows:

cordova plugin rm cordova-plugin-compat --force
cordova plugin add cordova-plugin-compat@1.2

Execution failed for task ':processDebugGoogleServices'.

Edit platforms/android/project.properties file and change the below lines as follows:

cordova.system.library.7=com.google.android.gms:play-services-auth:11.0.1
cordova.system.library.8=com.google.android.gms:play-services-identity:11.0.1

These can also be specified in the config.xml file.

<plugin name="cordova-plugin-compat" spec="^1.2.0" />
<plugin name="phonegap-plugin-push" spec="^2.1.0">
    <variable name="FCM_VERSION" value="11.0.1" />
</plugin>

A problem occurred evaluating root project 'android'.


Failed to apply plugin [class 'com.google.gms.googleservices.GoogleServicesPlugin']
##

Download google-services.json from your Firebase console and place it in the root and platforms/android/ folder. Also make the changes in the config.xml file for the file location.

<platform name="android">
      <resource-file src="google-services.json" target="google-services.json" />
</platform>

If you are still having issues, try re-installing the cordova-plugin-googleplus plugin as it may be conflicting with the phonegap-plugin-push.

Note: Do not forget to place google-services.json file in the platforms/android folder and GoogleService-info.plist in the platforms/ios folder, else application build will not work.

Unable to Login using Google Plus

If you are not able to login to Google after entering the correct SHA1, then use the below given code to find the used SHA1 key in the AppCtrl controller.

window.plugins.googleplus.getSigningCertificateFingerprint(
    function (fingerprint) {
        alert(fingerprint);
    }
);

This will show a new SHA1 key, use that key in your console.developer.google.com account.

REASON: Sometimes, the "unknown" SHA1 comes from the development builds:

keytool -list -printcert -jarfile platforms/android/build/outputs/apk/android-debug.apk

IOS - id: library not found for -IGoogleToolboxForMac

  • Go to platforms/ios folder and type the "pod install" into Terminal. This will add the linking dependencies.
  • You could also try to Delete the pods folder and the Pods file.
  • If you are still having issues, Type "pod update" into Terminal.

Facebook - Invalid Key Hash

Invalid key hash. The key hash rX6qeRitkFCWui3de74rxB_qc1s does not match any stored key hashes. Configure your app key hashes at https://developers.facebook.com/apps/YOUR APP ID

Add the key provided in the error "rX6qeRitkFCWui3de74rxB_qc1s" to your Facebook Developers Account.

You can generate a hash key through coding, you simply do one thing. Paste this code in the main class (first class) then run the app and check the logcat where you will find the hash key.

One more thing, replace the package name "com.goclixy.com" with your package name:

try {
    PackageInfo info = getPackageManager().getPackageInfo(
        "com.goclixy.com", PackageManager.GET_SIGNATURES);
            for (Signature signature : info.signatures) {
                MessageDigest md = MessageDigest.getInstance("SHA");
                md.update(signature.toByteArray());
                Log.d("KeyHash:",Base64.encodeToString(md.digest(), Base64.DEFAULT));   
        } 
} catch (NameNotFoundException e) {

} catch (NoSuchAlgorithmException e) {

}

Module FirebaseInstanceID not found in ios

Go to the platforms/ios folder in your Terminal and run the command below:

pod install