Coder Social home page Coder Social logo

instabug-cordova's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

instabug-cordova's Issues

[Android] FileNotFoundException error while submitting bug

I am using ionic cordova SDK of instabug. while i tried to send bug from mobile app using instabug its not sending bug to instabug web portal. i have tried to debug from android studio and found following error in log.

W/System.err: java.io.FileNotFoundException: /storage/emulated/0/Android/data/com.ransomlab.quarterly/files/instabug/attachments/bug_1525930433753_.jpg: open failed: ENOENT (No such file or directory) at libcore.io.IoBridge.open(IoBridge.java:452) at java.io.FileInputStream.<init>(FileInputStream.java:76) at com.instabug.library.util.BitmapUtils.compressBitmapAndSave(BitmapUtils.java:94) at com.instabug.bug.d.d(LiveBugManager.java:188) at com.instabug.bug.d.c(LiveBugManager.java:132) at com.instabug.bug.view.e.h(BugReportingFragmentPresenter.java:319) at com.instabug.bug.view.c.onDoneButtonClicked(BugReportingFragment.java:380) at com.instabug.library.core.ui.ToolbarFragment$1.onClick(ToolbarFragment.java:44) at android.view.View.performClick(View.java:5212) at android.view.View$PerformClick.run(View.java:21214) at android.os.Handler.handleCallback(Handler.java:739) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:148) at android.app.ActivityThread.main(ActivityThread.java:5541) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:853) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:737) Caused by: android.system.ErrnoException: open failed: ENOENT (No such file or directory) at libcore.io.Posix.open(Native Method) at libcore.io.BlockGuardOs.open(BlockGuardOs.java:186) at libcore.io.IoBridge.open(IoBridge.java:438)

here is my project configuration

intabug cordova sdk version

com.instabug.cordova.plugin 1.0.0 "instabug-cordova"

ionic info

cli packages: (/home/vinay/.npm-global/lib/node_modules)

@ionic/cli-utils  : 1.19.2
ionic (Ionic CLI) : 3.20.0

global packages:

cordova (Cordova CLI) : 7.1.0 

local packages:

@ionic/app-scripts : 3.1.8
Cordova Platforms  : android 6.3.0 browser 5.0.1 ios 4.5.4
Ionic Framework    : ionic-angular 3.9.2

System:

Android SDK Tools : 26.1.1
Node              : v9.11.1
npm               : 6.0.0 
OS                : Linux 4.13

Environment Variables:

ANDROID_HOME : /home/vinay/Android/Sdk

Misc:

backend : pro

note: I have tried to give storage permission manually from my android settings. still it is not working.

android build fails after adding plugin

also fails to be build on android:

BUILD FAILED in 31s
.../platforms/android/gradlew: Command failed with exit code 1 Error output:
Note: .../platforms/android/app/src/main/java/com/instabug/cordova/plugin/IBGPlugin.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
D8: Cannot fit requested classes in a single dex file (# methods: 78327 > 65536)
FAILURE: Build failed with an exception.

Instabug failed to recognize header file

Please review below screen shot.

I have installed instabug 8.0.7 plugin to my ionic app.

It does not recognize header file "IBGBugReporting.h" but it recognize "Instabug.h" from same folder/namespace

Please review below screen shot

screen shot 2019-02-27 at 4 28 40 pm

Polutes cordova.plugins object

Instead of namespacing plugin into single object multiple objects gets injected into

cordova.plugins

This also can lead into clashing into other plugin object

    <!-- js -->
    <js-module src="www/instabug.js" name="Instabug">
        <clobbers target="cordova.plugins.instabug"/>
    </js-module>
   <js-module src="www/bugReporting.js" name="BugReporting">
        <clobbers target="cordova.plugins.bugReporting"/>
    </js-module>
    <js-module src="www/featureRequests.js" name="FeatureRequests">
        <clobbers target="cordova.plugins.featureRequests"/>
    </js-module>
    <js-module src="www/surveys.js" name="Surveys">
        <clobbers target="cordova.plugins.surveys"/>
    </js-module>
    <js-module src="www/chats.js" name="Chats">
        <clobbers target="cordova.plugins.chats"/>
    </js-module>
    <js-module src="www/replies.js" name="Replies">
        <clobbers target="cordova.plugins.replies"/>
    </js-module>

[SUGGESTION] Allow implementation for Android with TypeScript/JavaScript

Once we download the plugin and install all the dependencies, for us to start using it in both platforms, we have write the code in two different languages (TypeScript/JavaScript and Java), but it should be able to do it only through TypeScript/JavaScript.
For example the iOS implementation for Cordova:

cordova.plugins.instabug.activate(
    {
        ios: 'MY_IOS_TOKEN'
    },
    'shake',
    function () {
        console.log('Instabug initialized.');
    },
    function (error) {
        console.log('Instabug could not be initialized - ' + error);
    }
);

Like this, it'll be easier for newcomers and people with not a lot of experience in working with mobile apps.

Crashes on Android

I followed installation and initialization very carefully but I'm still experiencing crashes instantly on Galaxy Note 4 running OS version 5.1.1. Please advise.

[ANDROID] Screenshot crashes my app

After SHAKING the screen, click on Report Bug, Take Screenshot, after submitting the screenshot, the entire app crashes, and afterwards keep on crashing, I need to re-install my app for it to work again.

Not able to install the plugin

cordova plugin add instabug.cordova@latest --save
✖ Running command - failed!
[ERROR] An error occurred while running cordova plugin add instabug.cordova@latest --save (exit code 1):

    Error: Failed to fetch plugin instabug.cordova@latest via registry.
    Probably this is either a connection problem, or plugin spec is incorrect.
    Check your connection and plugin name/version/URL.
    Error: npm: Command failed with exit code 1 Error output:
    npm ERR! code E404
    npm ERR! 404 Not Found: instabug.cordova@latest

    npm ERR! A complete log of this run can be found in:
    npm ERR!     /Users/pc50/.npm/_logs/2018-08-21T14_06_18_185Z-debug.log

Also

cordova plugin add https://github.com/Instabug/instabug-cordova@latest --save
✖ Running command - failed!
[ERROR] An error occurred while running cordova plugin add https://github.com/Instabug/instabug-cordova@latest --save

    (exit code 1):

    Error: Failed to fetch plugin https://github.com/Instabug/instabug-cordova@latest via registry.
    Probably this is either a connection problem, or plugin spec is incorrect.
    Check your connection and plugin name/version/URL.
    Error: npm: Command failed with exit code 1 Error output:
    npm ERR! Error while executing:
    npm ERR! /usr/bin/git ls-remote -h -t https://github.com/Instabug/instabug-cordova%40latest.git
    npm ERR!
    npm ERR! fatal: unable to access 'https://github.com/Instabug/instabug-cordova%40latest.git/': The requested URL
    returned error: 400
    npm ERR!
    npm ERR! exited with error code: 128

    npm ERR! A complete log of this run can be found in:
    npm ERR!     /Users/pc50/.npm/_logs/2018-08-21T14_21_29_128Z-debug.log

No reports available

Hi,

We've added your services to our ionic application. Added necessary key.
I see a notification when we start an application, and when we shake a device we get a report window.
Anyhow when we click report bug, nothing comes to our account.

Could you please advise if this is a common issue?

Here is the configuration we have:

$ node -v
v6.11.3

$ npm --version
5.5.1

We tried to update to a new version, no result as well so far.

Please advise. Thanks

Instabug getInstance called before Instabug.Builder().build() was called

Hello,

I have an Android application with the Instabug plugin installed.
When launching it, it crashes immaediatly with the following error found in logcat:

FATAL EXCEPTION: main
Process: org.sahfa.jambomama.women, PID: 25648
java.lang.RuntimeException: Unable to start activity ComponentInfo{org.sahfa.jambomama.women/com.instabug.cordova.plugin.IBGPluginActivity}: java.lang.IllegalStateException: Instabug getInstance called before Instabug.Builder().build() was called
       at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2744)
       at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2805)
       at android.app.ActivityThread.-wrap12(ActivityThread.java)
       at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1518)
       at android.os.Handler.dispatchMessage(Handler.java:102)
       at android.os.Looper.loop(Looper.java:173)
       at android.app.ActivityThread.main(ActivityThread.java:6519)
       at java.lang.reflect.Method.invoke(Native Method)
       at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:969)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:849) 09-27 17:34:33.615 25648 25648 E AndroidRuntime: Caused by: java.lang.IllegalStateException: Instabug getInstance called before Instabug.Builder().build() was called
       at com.instabug.library.Instabug.getInstance(Instabug.java:82)
       at com.instabug.library.Instabug.setCommentFieldRequired(Instabug.java:1422)
       at com.instabug.cordova.plugin.IBGPluginActivity.setCommentFieldRequired(IBGPluginActivity.java:63)
       at com.instabug.cordova.plugin.IBGPluginActivity.setBuilderOptions(IBGPluginActivity.java:249)
       at com.instabug.cordova.plugin.IBGPluginActivity.onCreate(IBGPluginActivity.java:34)
       at android.app.Activity.performCreate(Activity.java:6688)
       at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1136)
       at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2697)
       ... 9 more
 App crashed! Process: org.sahfa.jambomama.women
   Force finishing activity org.sahfa.jambomama.women/com.instabug.cordova.plugin.IBGPluginActivity

Calling UI Only functions on background thread causes crash

Usually when you just launch the app the system seems to ignore these calls, but if you are running UI tests in xcode, ui calls, that are meant to be run on the main thread, often crash the app making testing on an actual device and newer versions of iOS SDK impossible.

=================================================================
Main Thread Checker: UI API called on a background thread: -[UIApplication setNetworkActivityIndicatorVisible:]
PID: 51759, TID: 17228708, Thread name: (none), Queue name: NSOperationQueue 0x14bf05990 (QOS: UNSPECIFIED), QoS: 0
Backtrace:
4   Organizer                           0x00000001047adc84 -[IBGServerManager updateNetworkActivityIndicator] + 144
5   Organizer                           0x00000001047adbe0 -[IBGServerManager refresh] + 292
6   Organizer                           0x00000001047add58 -[IBGServerManager handleRequest:] + 52
7   Organizer                           0x00000001047dca00 -[IBGFeatures featuresRequestDone:isSuccess:response:error:] + 864
8   Organizer                           0x00000001047bf4c8 -[IBGFeaturesRequest dataServerExecutionDone:statusCode:error:response:] + 272
9   Organizer                           0x000000010479f5f0 __67+[IBGServerDataRequest executeWithURL:HTTPMethod:payload:delegate:]_block_invoke_2 + 120
10  Organizer                           0x000000010479f1d0 -[IBGServerDataRequest prepareResponseWithData:error:rawResponse:completionHandler:] + 520
11  Organizer                           0x000000010479f534 __67+[IBGServerDataRequest executeWithURL:HTTPMethod:payload:delegate:]_block_invoke + 156
12  CFNetwork                           0x00000001ad0fedd0 _CFURLConnectionCopyTimingData + 18260
13  Foundation                          0x00000001aa1db410 503900AF-2ECD-329F-B742-C07C3E672BEB + 1131536
14  Foundation                          0x00000001aa0e5138 503900AF-2ECD-329F-B742-C07C3E672BEB + 123192
15  Foundation                          0x00000001aa1dd698 503900AF-2ECD-329F-B742-C07C3E672BEB + 1140376
16  Foundation                          0x00000001aa0e4dd0 503900AF-2ECD-329F-B742-C07C3E672BEB + 122320
17  Foundation                          0x00000001aa1de090 503900AF-2ECD-329F-B742-C07C3E672BEB + 1142928
18  Foundation                          0x00000001aa1ddb5c 503900AF-2ECD-329F-B742-C07C3E672BEB + 1141596
19  libdispatch.dylib                   0x00000001a9ac6998 A3849F96-1C9F-36C5-A15F-70C566F14CFF + 260504
20  libdispatch.dylib                   0x00000001a9ae3184 A3849F96-1C9F-36C5-A15F-70C566F14CFF + 377220
21  libdispatch.dylib                   0x00000001a9abce8c A3849F96-1C9F-36C5-A15F-70C566F14CFF + 220812
22  libdispatch.dylib                   0x00000001a9abc600 A3849F96-1C9F-36C5-A15F-70C566F14CFF + 218624
23  libdispatch.dylib                   0x00000001a9ac9110 A3849F96-1C9F-36C5-A15F-70C566F14CFF + 270608
24  libdispatch.dylib                   0x00000001a9ac98b0 A3849F96-1C9F-36C5-A15F-70C566F14CFF + 272560
25  libsystem_pthread.dylib             0x00000001a9b32b48 _pthread_wqthread + 212
26  libsystem_pthread.dylib             0x00000001a9b35760 start_wqthread + 8

You need to wrap these calls is a dispatch to the main thread.

Fresh install of plugin crashes

I have created new ionic project and build to device, everything was fine, then I have installed instabug cordova plugin and tried again, but build fails:

cordova run android
[cordova]  Android Studio project detected
[cordova]  ANDROID_HOME=/Users/myUser/Library/Android/sdk
[cordova]  JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home
[cordova]  studio
[cordova]  Subproject Path: CordovaLib
[cordova]  Subproject Path: app
[cordova]  publishNonDefault is deprecated and has no effect anymore. All variants are now published.
[cordova]  The Task.leftShift(Closure) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use Task.doLast(Action) instead.
[cordova]  	at build_5uwp26o1t35f611bk62346ybi.run(/Users/myUser/Documents/projects/myProject/platforms/android/app/build.gradle:149)
[cordova]  Configuration 'compile' in project ':app' is deprecated. Use 'implementation' instead.
[cordova]  :CordovaLib:preBuild UP-TO-DATE
[cordova]  :CordovaLib:preDebugBuild UP-TO-DATE
[cordova]  :CordovaLib:compileDebugAidl UP-TO-DATE
[cordova]  :CordovaLib:compileDebugRenderscript UP-TO-DATE
[cordova]  :CordovaLib:checkDebugManifest UP-TO-DATE
[cordova]  :CordovaLib:generateDebugBuildConfig UP-TO-DATE
[cordova]  :CordovaLib:prepareLintJar UP-TO-DATE
[cordova]  :CordovaLib:generateDebugResValues UP-TO-DATE
[cordova]  :CordovaLib:generateDebugResources UP-TO-DATE
[cordova]  :CordovaLib:packageDebugResources UP-TO-DATE
[cordova]  :CordovaLib:platformAttrExtractor UP-TO-DATE
[cordova]  :CordovaLib:processDebugManifest UP-TO-DATE
[cordova]  :CordovaLib:processDebugResources
[cordova]  :CordovaLib:generateDebugSources
[cordova]  :CordovaLib:javaPreCompileDebug UP-TO-DATE
[cordova]  Note: Some input files use or override a deprecated API.
[cordova]  Note: Recompile with -Xlint:deprecation for details.
[cordova]  :CordovaLib:compileDebugJavaWithJavac
[cordova]  :CordovaLib:processDebugJavaRes NO-SOURCE
[cordova]  :CordovaLib:transformClassesAndResourcesWithPrepareIntermediateJarsForDebug
[cordova]  :app:preBuild UP-TO-DATE
[cordova]  :app:preDebugBuild
[cordova]  :app:compileDebugAidl
[cordova]  :CordovaLib:packageDebugRenderscript NO-SOURCE
[cordova]  :app:compileDebugRenderscript
[cordova]  :app:checkDebugManifest
[cordova]  :app:generateDebugBuildConfig
[cordova]  :app:prepareLintJar
[cordova]  :app:generateDebugResValues
[cordova]  :app:generateDebugResources
[cordova]  :app:mergeDebugResources
[cordova]  :app:createDebugCompatibleScreenManifests
[cordova]  :app:processDebugManifest
[cordova]  :app:splitsDiscoveryTaskDebug
[cordova]  /Users/myUser/.gradle/caches/transforms-1/files-1.1/appcompat-v7-28.0.0.aar/8672301b54694f15bf6f5102a5e69daa/res/values-v28/values-v28.xml:9:5-12:13: AAPT: error: resource android:attr/dialogCornerRadius not found.
[cordova]      
[cordova]  /Users/myUser/Documents/projects/myProject/platforms/android/app/build/intermediates/incremental/mergeDebugResources/merged.dir/values-v28/values-v28.xml:11: AAPT: error: resource android:attr/dialogCornerRadius not found.
[cordova]      
[cordova]  /Users/myUser/.gradle/caches/transforms-1/files-1.1/instabug-core-8.1.1.aar/d3c0417a032f26dcef3ffe2eb6e1b52f/res/values/values.xml:132:5-52: AAPT: error: resource android:attr/fontVariationSettings not found.
[cordova]      
[cordova]  /Users/myUser/.gradle/caches/transforms-1/files-1.1/instabug-core-8.1.1.aar/d3c0417a032f26dcef3ffe2eb6e1b52f/res/values/values.xml:132:5-52: AAPT: error: resource android:attr/ttcIndex not found.
[cordova]      
[cordova]  /Users/myUser/Documents/projects/myProject/platforms/android/app/build/intermediates/incremental/mergeDebugResources/merged.dir/values-v28/values-v28.xml:7: error: resource android:attr/dialogCornerRadius not found.
[cordova]  /Users/myUser/Documents/projects/myProject/platforms/android/app/build/intermediates/incremental/mergeDebugResources/merged.dir/values-v28/values-v28.xml:11: error: resource android:attr/dialogCornerRadius not found.
[cordova]  /Users/myUser/Documents/projects/myProject/platforms/android/app/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:580: error: resource android:attr/fontVariationSettings not found.
[cordova]  /Users/myUser/Documents/projects/myProject/platforms/android/app/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:580: error: resource android:attr/ttcIndex not found.
[cordova]  error: failed linking references.
[cordova]  
[cordova]  Failed to execute aapt
[cordova]  com.android.ide.common.process.ProcessException: Failed to execute aapt
[cordova]  	at com.android.builder.core.AndroidBuilder.processResources(AndroidBuilder.java:796)
[cordova]  	at com.android.build.gradle.tasks.ProcessAndroidResources.invokeAaptForSplit(ProcessAndroidResources.java:551)
[cordova]  	at com.android.build.gradle.tasks.ProcessAndroidResources.doFullTaskAction(ProcessAndroidResources.java:285)
[cordova]  	at com.android.build.gradle.internal.tasks.IncrementalTask.taskAction(IncrementalTask.java:109)
[cordova]  	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[cordova]  	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[cordova]  	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[cordova]  	at java.lang.reflect.Method.invoke(Method.java:498)
[cordova]  	at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:73)
[cordova]  	at org.gradle.api.internal.project.taskfactory.DefaultTaskClassInfoStore$IncrementalTaskAction.doExecute(DefaultTaskClassInfoStore.java:173)
[cordova]  	at org.gradle.api.internal.project.taskfactory.DefaultTaskClassInfoStore$StandardTaskAction.execute(DefaultTaskClassInfoStore.java:134)
[cordova]  	at org.gradle.api.internal.project.taskfactory.DefaultTaskClassInfoStore$StandardTaskAction.execute(DefaultTaskClassInfoStore.java:121)
[cordova]  	at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$1.run(ExecuteActionsTaskExecuter.java:122)
[cordova]  	at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:336)
[cordova]  	at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:328)
[cordova]  	at org.gradle.internal.progress.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:197)
[cordova]  	at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:107)
[cordova]  	at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:111)
[cordova]  	at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:92)
[cordova]  	at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:70)
[cordova]  	at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:63)
[cordova]  	at org.gradle.api.internal.tasks.execution.ResolveTaskOutputCachingStateExecuter.execute(ResolveTaskOutputCachingStateExecuter.java:54)
[cordova]  	at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:58)
[cordova]  	at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:88)
[cordova]  	at org.gradle.api.internal.tasks.execution.ResolveTaskArtifactStateTaskExecuter.execute(ResolveTaskArtifactStateTaskExecuter.java:52)
[cordova]  	at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:52)
[cordova]  	at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:54)
[cordova]  	at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43)
[cordova]  	at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:34)
[cordova]  	at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker$1.run(DefaultTaskGraphExecuter.java:248)
[cordova]  	at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:336)
[cordova]  	at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:328)
[cordova]  	at org.gradle.internal.progress.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:197)
[cordova]  	at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:107)
[cordova]  	at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:241)
[cordova]  	at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:230)
[cordova]  	at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker.processTask(DefaultTaskPlanExecutor.java:124)
[cordova]  	at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker.access$200(DefaultTaskPlanExecutor.java:80)
[cordova]  	at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker$1.execute(DefaultTaskPlanExecutor.java:105)
[cordova]  	at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker$1.execute(DefaultTaskPlanExecutor.java:99)
[cordova]  	at org.gradle.execution.taskgraph.DefaultTaskExecutionPlan.execute(DefaultTaskExecutionPlan.java:625)
[cordova]  	at org.gradle.execution.taskgraph.DefaultTaskExecutionPlan.executeWithTask(DefaultTaskExecutionPlan.java:580)
[cordova]  	at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker.run(DefaultTaskPlanExecutor.java:99)
[cordova]  	at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:63)
[cordova]  	at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:46)
[cordova]  	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
[cordova]  	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
[cordova]  	at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:55)
[cordova]  	at java.lang.Thread.run(Thread.java:745)
[cordova]  Caused by: java.util.concurrent.ExecutionException: java.util.concurrent.ExecutionException: com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details
[cordova]  	at com.google.common.util.concurrent.AbstractFuture.getDoneValue(AbstractFuture.java:503)
[cordova]  	at com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:482)
[cordova]  	at com.google.common.util.concurrent.AbstractFuture$TrustedFuture.get(AbstractFuture.java:79)
[cordova]  	at com.android.builder.core.AndroidBuilder.processResources(AndroidBuilder.java:794)
[cordova]  	... 48 more
[cordova]  Caused by: java.util.concurrent.ExecutionException: com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details
[cordova]  	at com.google.common.util.concurrent.AbstractFuture.getDoneValue(AbstractFuture.java:503)
[cordova]  	at com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:462)
[cordova]  	at com.google.common.util.concurrent.AbstractFuture$TrustedFuture.get(AbstractFuture.java:79)
[cordova]  	at com.android.builder.internal.aapt.v2.QueueableAapt2.lambda$makeValidatedPackage$1(QueueableAapt2.java:179)
[cordova]  	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
[cordova]  	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
[cordova]  	... 1 more
[cordova]  Caused by: com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details
[cordova]  	at com.android.builder.png.AaptProcess$NotifierProcessOutput.handleOutput(AaptProcess.java:463)
[cordova]  	at com.android.builder.png.AaptProcess$NotifierProcessOutput.err(AaptProcess.java:415)
[cordova]  	at com.android.builder.png.AaptProcess$ProcessOutputFacade.err(AaptProcess.java:332)
[cordova]  	at com.android.utils.GrabProcessOutput$1.run(GrabProcessOutput.java:104)
[cordova]  :app:processDebugResources FAILED
[cordova]  
[cordova]  FAILURE: Build failed with an exception.
[cordova]  
[cordova]  * What went wrong:
[cordova]  Execution failed for task ':app:processDebugResources'.
[cordova]  > Failed to execute aapt
[cordova]  
[cordova]  * Try:
[cordova]  Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
[cordova]  
[cordova]  * Get more help at https://help.gradle.org
[cordova]  
[cordova]  BUILD FAILED in 14s
[cordova]  25 actionable tasks: 15 executed, 10 up-to-date
[cordova]  /Users/myUser/Documents/projects/myProject/platforms/android/gradlew: Command failed with exit code 1 Error output:
[cordova]  Note: Some input files use or override a deprecated API.
[cordova]  Note: Recompile with -Xlint:deprecation for details.
[cordova]  /Users/myUser/.gradle/caches/transforms-1/files-1.1/appcompat-v7-28.0.0.aar/8672301b54694f15bf6f5102a5e69daa/res/values-v28/values-v28.xml:9:5-12:13: AAPT: error: resource android:attr/dialogCornerRadius not found.
[cordova]      
[cordova]  /Users/myUser/Documents/projects/myProject/platforms/android/app/build/intermediates/incremental/mergeDebugResources/merged.dir/values-v28/values-v28.xml:11: AAPT: error: resource android:attr/dialogCornerRadius not found.
[cordova]      
[cordova]  /Users/myUser/.gradle/caches/transforms-1/files-1.1/instabug-core-8.1.1.aar/d3c0417a032f26dcef3ffe2eb6e1b52f/res/values/values.xml:132:5-52: AAPT: error: resource android:attr/fontVariationSettings not found.
[cordova]      
[cordova]  /Users/myUser/.gradle/caches/transforms-1/files-1.1/instabug-core-8.1.1.aar/d3c0417a032f26dcef3ffe2eb6e1b52f/res/values/values.xml:132:5-52: AAPT: error: resource android:attr/ttcIndex not found.
[cordova]      
[cordova]  /Users/myUser/Documents/projects/myProject/platforms/android/app/build/intermediates/incremental/mergeDebugResources/merged.dir/values-v28/values-v28.xml:7: error: resource android:attr/dialogCornerRadius not found.
[cordova]  /Users/myUser/Documents/projects/myProject/platforms/android/app/build/intermediates/incremental/mergeDebugResources/merged.dir/values-v28/values-v28.xml:11: error: resource android:attr/dialogCornerRadius not found.
[cordova]  /Users/myUser/Documents/projects/myProject/platforms/android/app/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:580: error: resource android:attr/fontVariationSettings not found.
[cordova]  /Users/myUser/Documents/projects/myProject/platforms/android/app/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:580: error: resource android:attr/ttcIndex not found.
[cordova]  error: failed linking references.
[cordova]  
[cordova]  Failed to execute aapt
[cordova]  com.android.ide.common.process.ProcessException: Failed to execute aapt
[cordova]  	at com.android.builder.core.AndroidBuilder.processResources(AndroidBuilder.java:796)
[cordova]  	at com.android.build.gradle.tasks.ProcessAndroidResources.invokeAaptForSplit(ProcessAndroidResources.java:551)
[cordova]  	at com.android.build.gradle.tasks.ProcessAndroidResources.doFullTaskAction(ProcessAndroidResources.java:285)
[cordova]  	at com.android.build.gradle.internal.tasks.IncrementalTask.taskAction(IncrementalTask.java:109)
[cordova]  	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[cordova]  	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[cordova]  	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[cordova]  	at java.lang.reflect.Method.invoke(Method.java:498)
[cordova]  	at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:73)
[cordova]  	at org.gradle.api.internal.project.taskfactory.DefaultTaskClassInfoStore$IncrementalTaskAction.doExecute(DefaultTaskClassInfoStore.java:173)
[cordova]  	at org.gradle.api.internal.project.taskfactory.DefaultTaskClassInfoStore$StandardTaskAction.execute(DefaultTaskClassInfoStore.java:134)
[cordova]  	at org.gradle.api.internal.project.taskfactory.DefaultTaskClassInfoStore$StandardTaskAction.execute(DefaultTaskClassInfoStore.java:121)
[cordova]  	at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$1.run(ExecuteActionsTaskExecuter.java:122)
[cordova]  	at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:336)
[cordova]  	at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:328)
[cordova]  	at org.gradle.internal.progress.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:197)
[cordova]  	at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:107)
[cordova]  	at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:111)
[cordova]  	at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:92)
[cordova]  	at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:70)
[cordova]  	at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:63)
[cordova]  	at org.gradle.api.internal.tasks.execution.ResolveTaskOutputCachingStateExecuter.execute(ResolveTaskOutputCachingStateExecuter.java:54)
[cordova]  	at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:58)
[cordova]  	at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:88)
[cordova]  	at org.gradle.api.internal.tasks.execution.ResolveTaskArtifactStateTaskExecuter.execute(ResolveTaskArtifactStateTaskExecuter.java:52)
[cordova]  	at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:52)
[cordova]  	at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:54)
[cordova]  	at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43)
[cordova]  	at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:34)
[cordova]  	at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker$1.run(DefaultTaskGraphExecuter.java:248)
[cordova]  	at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:336)
[cordova]  	at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:328)
[cordova]  	at org.gradle.internal.progress.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:197)
[cordova]  	at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:107)
[cordova]  	at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:241)
[cordova]  	at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:230)
[cordova]  	at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker.processTask(DefaultTaskPlanExecutor.java:124)
[cordova]  	at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker.access$200(DefaultTaskPlanExecutor.java:80)
[cordova]  	at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker$1.execute(DefaultTaskPlanExecutor.java:105)
[cordova]  	at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker$1.execute(DefaultTaskPlanExecutor.java:99)
[cordova]  	at org.gradle.execution.taskgraph.DefaultTaskExecutionPlan.execute(DefaultTaskExecutionPlan.java:625)
[cordova]  	at org.gradle.execution.taskgraph.DefaultTaskExecutionPlan.executeWithTask(DefaultTaskExecutionPlan.java:580)
[cordova]  	at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker.run(DefaultTaskPlanExecutor.java:99)
[cordova]  	at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:63)
[cordova]  	at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:46)
[cordova]  	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
[cordova]  	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
[cordova]  	at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:55)
[cordova]  	at java.lang.Thread.run(Thread.java:745)
[cordova]  Caused by: java.util.concurrent.ExecutionException: java.util.concurrent.ExecutionException: com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details
[cordova]  	at com.google.common.util.concurrent.AbstractFuture.getDoneValue(AbstractFuture.java:503)
[cordova]  	at com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:482)
[cordova]  	at com.google.common.util.concurrent.AbstractFuture$TrustedFuture.get(AbstractFuture.java:79)
[cordova]  	at com.android.builder.core.AndroidBuilder.processResources(AndroidBuilder.java:794)
[cordova]  	... 48 more
[cordova]  Caused by: java.util.concurrent.ExecutionException: com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details
[cordova]  	at com.google.common.util.concurrent.AbstractFuture.getDoneValue(AbstractFuture.java:503)
[cordova]  	at com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:462)
[cordova]  	at com.google.common.util.concurrent.AbstractFuture$TrustedFuture.get(AbstractFuture.java:79)
[cordova]  	at com.android.builder.internal.aapt.v2.QueueableAapt2.lambda$makeValidatedPackage$1(QueueableAapt2.java:179)
[cordova]  	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
[cordova]  	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
[cordova]  	... 1 more
[cordova]  Caused by: com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details
[cordova]  	at com.android.builder.png.AaptProcess$NotifierProcessOutput.handleOutput(AaptProcess.java:463)
[cordova]  	at com.android.builder.png.AaptProcess$NotifierProcessOutput.err(AaptProcess.java:415)
[cordova]  	at com.android.builder.png.AaptProcess$ProcessOutputFacade.err(AaptProcess.java:332)
[cordova]  	at com.android.utils.GrabProcessOutput$1.run(GrabProcessOutput.java:104)
[cordova]  
[cordova]  FAILURE: Build failed with an exception.
[cordova]  
[cordova]  * What went wrong:
[cordova]  Execution failed for task ':app:processDebugResources'.
[cordova]  > Failed to execute aapt
[cordova]  
[cordova]  * Try:
[cordova]  Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
[cordova]  
[cordova]  * Get more help at https://help.gradle.org
[cordova]  
[cordova]  BUILD FAILED in 14s

Ionic info

ionic info

Ionic:

   ionic (Ionic CLI)             : 4.11.0 (/Users/lucky/.nvm/versions/node/v10.11.0/lib/node_modules/ionic)
   Ionic Framework               : @ionic/angular 4.1.0
   @angular-devkit/build-angular : 0.13.5
   @angular-devkit/schematics    : 7.2.4
   @angular/cli                  : 7.3.5
   @ionic/angular-toolkit        : 1.4.0

Cordova:

   cordova (Cordova CLI) : 8.1.2 ([email protected])
   Cordova Platforms     : android 7.1.4
   Cordova Plugins       : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 3.1.2, (and 5 other plugins)

System:

   NodeJS : v10.11.0 (/Users/myUser/.nvm/versions/node/v10.11.0/bin/node)
   npm    : 6.8.0
   OS     : macOS High Sierra
   Xcode  : Xcode 10.1 Build version 10B61

Many thanks :)

Hosting Versions on Github

Need to host versions on github so we can modify our config.xml to point to the correct version we need.

Error: Failed to fetch plugin https://github.com/DevHossamHassan/cordova-multidex via registry.

Hello,

I have installed the plugin on an Ionic 2.2.1 project using the npm command.
When adding the android platform I got the following error:

Error: Failed to fetch plugin https://github.com/DevHossamHassan/cordova-multidex via registry.
Probably this is either a connection problem, or plugin spec is incorrect.
Check your connection and plugin name/version/URL.
Failed to get absolute path to installed module

Android App Crashing Issue

App crashing after changing network connection.

java.lang.RuntimeException: Unable to instantiate receiver com.instabug.library.network.InstabugNetworkReceiver: java.lang.ClassNotFoundException: Didn't find class "com.instabug.library.network.InstabugNetworkReceiver" on path: DexPathList[[zip file "/data/app/com.amritatech.amritaswift-1/base.apk"],nativeLibraryDirectories=[/data/app/com.amritatech.amritaswift-1/lib/x86, /vendor/lib, /system/lib]]
at android.app.ActivityThread.handleReceiver(ActivityThread.java:2706)
at android.app.ActivityThread.-wrap14(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1421)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5417)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
Caused by: java.lang.ClassNotFoundException: Didn't find class "com.instabug.library.network.InstabugNetworkReceiver" on path: DexPathList[[zip file "/data/app/com.amritatech.amritaswift-1/base.apk"],nativeLibraryDirectories=[/data/app/com.amritatech.amritaswift-1/lib/x86, /vendor/lib, /system/lib]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
at java.lang.ClassLoader.loadClass(ClassLoader.java:469)
at android.app.ActivityThread.handleReceiver(ActivityThread.java:2701)

Warnings returned during build process

/Users/www/platforms/ios/Self/Plugins/com.instabug.cordova.plugin/IBGPlugin.m:268:16: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
IBGLog(log);
^~~
/Users/www/platforms/ios/Self/Plugins/com.instabug.cordova.plugin/IBGPlugin.m:268:16: note: treat the string as an argument to avoid this
IBGLog(log);
^
@"%@",
/Users/www/platforms/ios/Self/Plugins/com.instabug.cordova.plugin/IBGPlugin.m:364:19: warning: 'setDefaultInvocationMode:' is deprecated: Starting from v6.0, use setPromptOptionsEnabledWithBug:feedback:chat: instead [-Wdeprecated-declarations]
[Instabug setDefaultInvocationMode:iMode];
^
In module 'Instabug' imported from /Users/www/platforms/ios/Self/Plugins/com.instabug.cordova.plugin/IBGPlugin.m:2:
Self/Plugins/com.instabug.cordova.plugin/Instabug.framework/Headers/Instabug.h:319:1: note: 'setDefaultInvocationMode:' has been explicitly marked deprecated here

  • (void)setDefaultInvocationMode:(IBGInvocationMode)invocationMode DEPRECATED_MSG_ATTRIBUTE("Starting from v6.0, use setPromptOptionsEnabledWithBug:feedback:chat: instead");
    ^
    2 warnings generated.

I have the latest version of the plugin installed and get these error messages after I run the "ionic build ios" command.

Android app fails runtime

Hi guys,

Simply starting the application on Android emulator results in an immediate crash, as shown in the following log:

   Process: app.myapplication, PID: 17029
    java.lang.RuntimeException: Unable to start activity ComponentInfo{app.norbert/com.instabug.cordova.plugin.IBGPluginActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void com.instabug.library.settings.b.a(com.instabug.library.InstabugColorTheme)' on a null object reference
        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2646)
        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2707)
        at android.app.ActivityThread.-wrap12(ActivityThread.java)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1460)
        at android.os.Handler.dispatchMessage(Handler.java:102)
        at android.os.Looper.loop(Looper.java:154)
        at android.app.ActivityThread.main(ActivityThread.java:6077)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:866)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:756)
     Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void com.instabug.library.settings.b.a(com.instabug.library.InstabugColorTheme)' on a null object reference
        at com.instabug.library.settings.SettingsManager.setTheme(SettingsManager.java:250)
        at com.instabug.library.Instabug.setTheme(Instabug.java:1804)
        at com.instabug.cordova.plugin.IBGPluginActivity.setColorTheme(IBGPluginActivity.java:272)
        at com.instabug.cordova.plugin.IBGPluginActivity.setBuilderOptions(IBGPluginActivity.java:300)
        at com.instabug.cordova.plugin.IBGPluginActivity.onCreate(IBGPluginActivity.java:35)
        at android.app.Activity.performCreate(Activity.java:6662)
        at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1118)
        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2599) 

I'm using ionic with cordova, here's the ionic info output:

cli packages: (/usr/local/lib/node_modules)

    @ionic/cli-utils  : 1.18.0
    ionic (Ionic CLI) : 3.18.0

global packages:

    cordova (Cordova CLI) : 8.0.0 
    Gulp CLI              : CLI version 3.9.1 Local version 3.9.1

local packages:

    @ionic/app-scripts : 3.1.9
    Cordova Platforms  : android 6.3.0
    Ionic Framework    : ionic-angular 3.9.2

System:

    Android SDK Tools : 26.1.1
    Node              : v8.9.4
    npm               : 5.7.1 

Within my package.json file:

  • instabug-cordova: ^1.14.1

Invalid Binary Architecture from iTunes Connect

Hi,

i'm using ionic 3 with phonegap build. The builds are running fine but when i upload a build to iTunes Connect for Testflight i'm getting this back:

Dear Developer,

We identified one or more issues with a recent delivery for your app, "xxx". Please correct the following issues, then upload again.

Invalid Binary Architecture - iOS 3.0 introduced support for multiple binary architectures. If your binary is built for multiple architectures, your Info.plist must have a MinimumOSVersion key with a value of at least 3.0. Additionally, if your app is intended to support earlier iPhone and iPod touch models, your app must contain at least an armv6 binary; "thin" armv7-only binaries will not be accepted unless the armv7 required device capability is also present in the Info.plist UIRequiredDeviceCapabilities key or the MinimumOSVersion key has a value of 4.3 or higher.

Specifically, we found the following unsupported architectures in your binary:

x86_64
i386

For more information, see Technical Q&A QA1707 at: http://developer.apple.com/iphone/library/qa/qa2010/qa1707.html.

Invalid Segment Alignment - The app binary at 'xxx.app/Frameworks/Instabug.framework/Instabug' does not have proper segment alignment. Try rebuilding the app with the latest Xcode version.

Invalid Segment Alignment - The app binary at 'xxx.app/Frameworks/InstabugCore.framework/InstabugCore' does not have proper segment alignment. Try rebuilding the app with the latest Xcode version.

Invalid Encryption Info - The binary is invalid. The encryption info in the LC_ENCRYPTION_INFO load command is either missing or invalid, or the binary is already encrypted. This binary does not seem to have been built with Apple's linker.

Though you are not required to fix the following issues, we wanted to make you aware of them:

Non-PIE Binary - The executable 'Payload/xxx.app/Frameworks/Instabug.framework' is not a Position Independent Executable. Please ensure that your build settings are configured to create PIE executables. For more information, refer to Technical Q&A QA1788 - Building a Position Independent Executable

Non-PIE Binary - The executable 'Payload/xxx.app/Frameworks/InstabugCore.framework' is not a Position Independent Executable. Please ensure that your build settings are configured to create PIE executables. For more information, refer to Technical Q&A QA1788 - Building a Position Independent Executable

Best regards,

The App Store Team

This happens only when i use this plugin with this code in my config.xml file:

<gap:plugin name="com.instabug.cordova.plugin" spec="https://github.com/Instabug/instabug-cordova" />

I don't have access to xcode. Thank you for any help.

Ionic 3 Android Platform build fails

Hi,

I can't run the build (--prod --release) process for the Android Platform:

FAILURE: Build failed with an exception.

My system:
"ionic-angular": "3.9.2"
"instabug-cordova": "^8.0.6"

The output of the terminal:

  • Where:
    Script .../platforms/android/instabug-cordova/myApp-build.gradle' line: 24

  • What went wrong:
    A problem occurred evaluating script.

Could not find method implementation() for arguments [com.instabug.library:instabug:8.0.12] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.

[ERROR] An error occurred while running subprocess cordova.

I installed the plugin with the ionic command

ionic cordova plugin add instabug-cordova

Any idea on how to solve this? Thanks a lot!

Not showing any options on shaking device.

Hi i'm using ionic 3 i was added this plugin in my ionic project after run this on android when i'm shaking device it was not showing any options like
"Talk to me"
"Report a problem"
Means to say i'm not able to report for any problem.

Issue with initialization in iOs

Hi,

I'm getting this error
"Instabug could not be initialized - An application token must be provided."

After doing this

cordova.plugins.instabug.activate(
  {
       ios: '0cca03baf6e1c178f776ddb594706196'
  },
  'shake',
  {
      commentRequired: true,
      colorTheme: 'dark'
  },
  function () {
      console.log('Instabug initialized.');
  },
  function (error) {
    console.log('Instabug could not be initialized - ' + error);
  }
);

I'm in the first instance of the installation, in the popup, so I took the token from this line

[Instabug startWithToken:@"0cca03baf6e1c178f776ddb594706196" invocationEvent:IBGInvocationEventShake];

Something of that lines could be wrong ? Or maybe I copied the token from the wrong place..
Besides I'm testing with an iPhone7 simulator, can be a problem with that ?

Thanks in advance.

[IOS] Adding Script Build Phase by zStripScript.js

Hello guys,

It seems i fixed your issue. Before that i had to add script build phase manually.

zStripScript.js works only in that case:

fs.chmod(projectPath, '0755', function(exc) {
  fs.writeFileSync(projectPath, myProj.writeSync());
});

Automated Installation

Hi,

I used Instabug 2 years ago using the Cordova plugin created by @elizabethrego and I was notified when you guys created this plugin on your own.

To have to manually edit AndroidManifest file and replace stuff is very not Cordova style. In Cordova it is expected that at any given time, one can simply do a remove and add to a platform without any further work.

You guys should unify the activation of this plugin to look like this:

cordova.plugins.instabug.activate(
    {
        ios: 'MY_IOS_TOKEN',
        android: 'MY_ANDROID_TOKEN'
    },
    'shake',
    function () {
        console.log('Instabug initialized.');
    },
    function (error) {
        console.log('Instabug could not be initialized - ' + error);
    }
);

or if you need the token during the installation of the plugin do something like:

cordova plugin add https://github.com/Instabug/instabug-cordova --variable ANDROID_TOKEN="ewefwfefwefwsfeffqf"

Issues with Android and IOS

Hello Instabug support team, im having the following error when executing ionic build in android

Node version: 4.4.2
Android Studio: 3.0.1
Cordova: 6.2.2

""""

  • What went wrong:
    A problem occurred configuring root project 'android'.

Could not resolve all dependencies for configuration ':_debugApkCopy'.
Could not find com.android.support:support-v4:26.0.2.
Searched in the following locations:
file:/Users/gabi/Library/Android/sdk/extras/android/m2repository/com/android/support/support-v4/26.0.2/support-v4-26.0.2.pom
file:/Users/gabi/Library/Android/sdk/extras/android/m2repository/com/android/support/support-v4/26.0.2/support-v4-26.0.2.jar
file:/Users/gabi/workspace/frisum-app/project/platforms/android/sdk-manager/com/android/support/support-v4/26.0.2/support-v4-26.0.2.jar
Required by:
project :
Could not find com.android.support:support-v4:26.0.2.
Searched in the following locations:
file:/Users/gabi/Library/Android/sdk/extras/android/m2repository/com/android/support/support-v4/26.0.2/support-v4-26.0.2.pom
file:/Users/gabi/Library/Android/sdk/extras/android/m2repository/com/android/support/support-v4/26.0.2/support-v4-26.0.2.jar
file:/Users/gabi/workspace/frisum-app/project/platforms/android/sdk-manager/com/android/support/support-v4/26.0.2/support-v4-26.0.2.jar
Required by:
project : > com.journeyapps:zxing-android-embedded:3.3.0
project : > com.android.support:appcompat-v7:23.1.0
Could not find com.android.support:support-v4:26.0.2.
Searched in the following locations:
file:/Users/gabi/Library/Android/sdk/extras/android/m2repository/com/android/support/support-v4/26.0.2/support-v4-26.0.2.pom
file:/Users/gabi/Library/Android/sdk/extras/android/m2repository/com/android/support/support-v4/26.0.2/support-v4-26.0.2.jar
file:/Users/gabi/workspace/frisum-app/project/platforms/android/sdk-manager/com/android/support/support-v4/26.0.2/support-v4-26.0.2.jar
Required by:
project : > com.instabug.library:instabug:4.6.1 > com.instabug.library:instabug-survey:4.6.1 > com.instabug.library:instabug-core:4.6.1
""""

I have tried uninstalling the Android Studio SDK support repository and letting the package being installed by itself but i have not gotten a solution.
Wait for your reply.

issue with initialization

so, i have installed the plugin with cordova in my app (ionic v1)
changed what neded to be changed
<uses-permission android:name="com.instabug.cordova.plugin.MyApplication" />

and

public void onCreate() { new Instabug.Builder( this, "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", InstabugInvocationEvent.FLOATING_BUTTON ).setFloatingButtonEdge(InstabugFloatingButtonEdge.LEFT).setFloatingButtonOffsetFromTop(250).build(); Instabug.setPrimaryColor(Color.parseColor("#1D82DC")); super.onCreate(); }

when i deploy my app on a samsung galaxy s3 android 4.4 the button doesn't appear. there are no errors on my console and code seems alright.
any idea?

sharing intent callbacks fired instantly on Android with Instabug initialized

Hello,
first of all thanks for the plugin. I'm testing an ionic application for both IOS and Android.
On IOS no problem.
On Android I followed your instruction for the initialization and it seems to work but I'm experiencing a strange problem:
my application has social sharing features and for this I use the Social Sharing plugin, when I share, if Instabug is initialized all my sharing callbacks are fired as soon as I send the sharing intent; If Instabug is not initialized everything works as usual (intent->do share->callback).

thanks

Issue with [email protected] and higher.

The issue #58 is stilll not solved, you can check the build.gradle file you'll see the path of the AndroidManifest.xml is still wrong, I've to manually change it to fix the build problem, please try to install the package to reproduce the issue.

Add support for Crosswalk Webview

I am using instabug-cordova#v1.1.0 and am getting a blank screen in capturing an image after having done the shake gesture. I'm too using cordova-plugin-crosswalk-webview 2.0.0 "Crosswalk WebView Engine" library that may or may not be causing this.

screenshot_20170324-125607_1024

Breaking change in minor version

We were using this plugin with ^8.2.1 which should have updated only to minor versions which by convention can't include breaking changes but it still broke on Android (still working on iOS).
Only by changing to 8.2.1 without the caret we got rid of that bug.

issue with ionic 3

Instabug plugin is not getting initialized.

Here is the code :

document.addEventListener('deviceready', this.onDeviceReady.bind(this), false);
onDeviceReady(){
this.receivedEvent('deviceready');
this.initInstabug();
}

initInstabug() {
cordova.plugins.instabug.activate(
{
android: '44f3f69ce99ff14e4307b26558b09f72'
// ios: 'IOS_TOKEN'
},
'button',
{
commentRequired: true,
colorTheme: 'light',
enableIntroDialog: false
},
() => {
console.log('Instabug initialized.');
},
(error) => {
console.log('Instabug could not be initialized - ' + error);
}
);
}

Error : TypeError: Cannot read property 'instabug' of undefined

Outdated documentation

Documentation:

cordova.plugins.instabug.activate(
    {
        token: 'MY_TOKEN'
    },
    'shake',
    function () {
        console.log('Instabug initialized.');
    },
    function (error) {
        console.log('Instabug could not be initialized - ' + error);
    }
);

Source:

Instabug.activate = function (token, event, options, success, error) {
    var validatedEvent = getInvocationEvents()[event];

    if (validatedEvent) {
        console.warn("This method is now deprecated, and will be removed in an upcoming version.")
        exec(success, error, 'IBGPlugin', 'activate', [token, event, options]);
    } else {
        console.log('Could not activate Instabug - invocation event "' + event + '" is not valid.');
    }
};

options are missing.

Crash on location.reload()

My app is continuously crashing every time location.reload() is called, check out the log:

java.lang.RuntimeException:
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2720)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2781)
at android.app.ActivityThread.-wrap12(ActivityThread.java:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1508)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:241)
at android.app.ActivityThread.main(ActivityThread.java:6274)
at java.lang.reflect.Method.invoke(Native Method:0)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)
Caused by: java.lang.NullPointerException:
at com.instabug.library.messaging.b.a.e(SynchronizationManager.java:100)
at com.instabug.library.messaging.b.a.d(SynchronizationManager.java:120)
at com.instabug.library.f.x(InstabugDelegate.java:335)
at com.instabug.library.f.g(InstabugDelegate.java:303)
at com.instabug.library.Instabug.disable(Instabug.java:761)
at com.instabug.library.Instabug$Builder.build(Instabug.java:2343)
at com.instabug.cordova.plugin.IBGPluginActivity.onCreate(IBGPluginActivity.java:53)
at android.app.Activity.performCreate(Activity.java:6720)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1119)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2673)

Incorrect AndroidManifest path Ionic3

I'm running an application with the latest versions of cordova-android, ionic-angular, and instabug-cordova. I noticed some closed issues with the path of AndroidManifest.xml in build.gradle but I'm still seeing the wrong path after installing the plugin.

Note: the android "before_plugin_install.js" script misses the android engine in config.xml

instabug in typescript

I am building an ionic 2 app and I am trying to add the instabug plugin but it seems like typescript doesn't know the connection among cordova and instabug .

I am getting : Uncaught TypeError: Cannot read property 'instabug' of undefined

even thought I use : declare var instabug:any;

if there are any suggestions please let me know :)

Failed to install due to multidex dependancie

When trying to install I get this error.

installing with

cordova plugin add https://github.com/Instabug/instabug-cordova --save

Failed to install 'com.instabug.cordova.plugin': Error
    at C:\Users\rusty\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\plugman\fetch.js:205:33
    at _rejected (C:\Users\rusty\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-fetch\node_modules\q\q.js:864:24)
    at C:\Users\rusty\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-fetch\node_modules\q\q.js:890:30
    at Promise.when (C:\Users\rusty\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-fetch\node_modules\q\q.js:1142:31)
    at Promise.promise.promiseDispatch (C:\Users\rusty\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-fetch\node_modules\q\q.js:808:41)
    at C:\Users\rusty\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-fetch\node_modules\q\q.js:624:44
    at runSingle (C:\Users\rusty\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-fetch\node_modules\q\q.js:137:13)
    at flush (C:\Users\rusty\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-fetch\node_modules\q\q.js:125:13)
    at _combinedTickCallback (internal/process/next_tick.js:95:7)
    at process._tickCallback (internal/process/next_tick.js:161:9)
Error: Failed to fetch plugin https://github.com/chris-armstrong/cordova-multidex via registry.
Probably this is either a connection problem, or plugin spec is incorrect.
Check your connection and plugin name/version/URL.
Failed to get absolute path to installed module

MAJOR: issues with 1.9 update and iOS

ERROR ITMS-90087: "Unsupported Architectures. The executable for Link Your Fit.app/Frameworks/Instabug.framework contains unsupported architectures '[x86_64, i386]'."
ERROR ITMS-90087: "Unsupported Architectures. The executable for Link Your Fit.app/Frameworks/InstabugCore.framework contains unsupported architectures '[x86_64, i386]'."
ERROR ITMS-90209: "Invalid Segment Alignment. The app binary at 'Link Your Fit.app/Frameworks/Instabug.framework/Instabug' does not have proper segment alignment. Try rebuilding the app with the latest Xcode version."
ERROR ITMS-90209: "Invalid Segment Alignment. The app binary at 'Link Your Fit.app/Frameworks/InstabugCore.framework/InstabugCore' does not have proper segment alignment. Try rebuilding the app with the latest Xcode version."
ERROR ITMS-90125: "The binary is invalid. The encryption info in the LC_ENCRYPTION_INFO load command is either missing or invalid, or the binary is already encrypted. This binary does not seem to have been built with Apple's linker."

DuplicateFileException when packaging android app with cordova

When installing this it was working, then I started getting this exception after updating to [email protected]

When rolling back to [email protected] this problem remained.

When I removed this plugin it built fin. When I added it back in (using cordova plugin add https://github.com/Instabug/instabug-cordova -nofetch) it wouldn't build again and this error showed up again.

* What went wrong:
Execution failed for task ':transformResourcesWithMergeJavaResForDebug'.
> com.android.build.api.transform.TransformException: com.android.builder.packaging.DuplicateFileException: Duplicate file
s copied in APK META-INF/rxjava.properties
        File1: /Users/admin/Desktop/Gravity/clubezy-meteorionic/platforms/android/build/intermediates/exploded-aar/com.goo
gle.android.gms/play-services-basement/11.0.0/jars/classes.jar
        File2: /Users/admin/.gradle/caches/modules-2/files-2.1/io.reactivex/rxjava/1.1.9/e4362e62f1ba92e360b197d6d7ffae67e
5ecae9a/rxjava-1.1.9.jar

Adobe Phonegap Build Error

Hi,

I’m having some issues with Adobe Phonegap Build.

I have below plugins in my config.xml file:

<plugin name="cordova-plugin-dialogs" spec="~1.2.1" />
<plugin name="cordova-plugin-file" spec="~4.1.1" />
<plugin name="cordova-plugin-globalization" spec="~1.0.8" />
<plugin name="cordova-plugin-inappbrowser" spec="~1.3.0" />
<plugin name="cordova-plugin-network-information" spec="~1.2.1" />
<plugin name="cordova-plugin-splashscreen" spec="~3.2.2" />
<plugin name="cordova-plugin-statusbar" spec="~2.3.0" />
<plugin name="cordova-launch-review" spec="~2.0.2" />
<plugin name="cordova-plugin-badge" spec="~0.8.5" />
<plugin name="cordova-plugin-geolocation" spec="~3.0.0" />
<plugin name="cordova-open-native-settings" spec="~1.4.1" />
<plugin name="com.localytics.phonegap.LocalyticsPlugin" spec="~1.0.0" />
<plugin name="cordova.plugins.diagnostic" spec="~3.7.2" />

I can create the APK file without having any issues with above plugin list. If I add below to the config.xml I’m getting an error in Adobe Phongegap Build.

LINE:
<plugin name="com.instabug.cordova.plugin" spec="https://github.com/Instabug/instabug-cordova" />

ERROR:

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':transformClassesWithDexForDebug'.
> com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: java.lang.UnsupportedOperationException

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
    at ChildProcess.whenDone (/project/cordova/node_modules/cordova-common/src/superspawn.js:169:23)
    at emitTwo (events.js:106:13)
    at ChildProcess.emit (events.js:191:7)
    at maybeClose (internal/child_process.js:877:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)

Could you please help me with this?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.