bugfender / cordova-plugin-bugfender Goto Github PK
View Code? Open in Web Editor NEWBugfender support for Cordova applications under iOS and Android
License: Other
Bugfender support for Cordova applications under iOS and Android
License: Other
After update to last version (1.3.0)
IOS deploy build crashed
fatal error: 'BugfenderSDK/BugfenderSDK.h' file not found
#import <BugfenderSDK/BugfenderSDK.h>
After downgrade to 1.2.1 all work fine.
Hi, I'm trying to use the plugin on a cordova project (we are working with only android for the moment), and found out the manual logs were not being sent to the server. Upon a closer look I noticed that in https://github.com/bugfender/cordova-plugin-bugfender/blob/master/www/bugfender.js#L101 The call to cordova was throwing a JSON Error.
I don't quite understand the usage of the code above that line, it creates a new Error
and then it parses it and the values returned on the capturing of the match (seems wrong) are used to be sent as line, func and file, seems like a default values settings, or maybe webview engine changed at some point the way it returns the stack, or the regex above is wrong. I also checked the git history and it seems that some functionality was removed there.
I commented that part out and set some defaults for those lines and the rest seems to work just fine. I also noticed that line
should be a number (can't be blank) and message must be a string (if you send an object algonside the message then it would cause JSON Error as well) I casted it to string and it seems that that's enough.
For the moment I am able to send those messages and see them correctly on the web dashboard. But I thought I would let you know of this issue.
Regards
Hi,
I'm attempting to install this plugin in a Ionic 6 + Capacitor project.
Since I'm using Capacitor, I ran the command:
npm install cordova-plugin-bugfender
and then manually edited the ios/App/App/Info.plist file for iOS and the android/app/src/main/res/values/strings.xml file for Android with the app key and automatic variables.
I also added the pod reference in the Podfile for iOS:
pod 'BugfenderSDK', '~> 1.9.2'
and ran the commands:
pod repo update
pod install
On Android, the plugin works fine, I can see the custom logs in the Dashboard.
On iOS, I receive the output message:
"To Native Cordova -> Bugfender log INVALID"
and cannot receive any log from the device.
Is the plugin compatible with Capacitor? Do I need additional configuration?
Thanks in advance, best regards.
Hi Team,
As per the instructions mentioned to update the iOS Bugfender SDK, when i am trying to run "pod install", the update is failing with the following error
I am setting up the SDK on Ionic 4 Capacitor 2.2 application. Although i can see the logs and it works brilliantly. Was trying to update the iOS SDK anyways.
I think this will require an update in the plugin to update the dependency versions..
Let me know if any additional details are required from my end.
I followed the instructions here, but no luck. Bugfender.log is not visible to my javascript code. Tried adding the js files into www and added bugfender.js and require.js to my project. Still no luck. Could use some help here.
thanks,
I integrated the Bugfender plugin for my cordova app as mentioned. But I get the error "bugfender is undefined". The error is logged in the logs sections in bugfender dashboard.
i used the ionic 4 and capacitor build the project. i got the error in Xcode10.
can anyone tell me how to fixed this issue
Thanks
Hi
Cordova 11.0.0
On attempting to install the plugin using cordova plugin add cordova-plugin-bugfender --variable BUGFENDER_APP_KEY=[APP_KEY] --variable BUGFENDER_AUTOMATIC=UI,CRASH
It fails with
Failed to install 'cordova-plugin-bugfender': CordovaError: Using "requireCordovaModule" to load non-cordova module "semver" is not supported. Instead, add this module to your dependencies and use regular "require" to load it. at Context.requireCordovaModule (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/hooks/Context.js:57:15) at getConfigParser (/Users/../../plugins/cordova-plugin-bugfender/scripts/check_ios_target.js:20:23) at module.exports (/Users/../../plugins/cordova-plugin-bugfender/scripts/check_ios_target.js:7:24) at runScriptViaModuleLoader (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/hooks/HooksRunner.js:157:32) at runScript (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/hooks/HooksRunner.js:136:12) at /usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/hooks/HooksRunner.js:108:40 at processTicksAndRejections (internal/process/task_queues.js:93:5) Using "requireCordovaModule" to load non-cordova module "semver" is not supported. Instead, add this module to your dependencies and use regular "require" to load it.
Any ideas?
Hello Guys,
How can I import plugin in ionic 2?
Thanks,
Bhavin
I followed along the steps to install the cordova-plugin-bugfender. Since it's an ionic/capacitor application, I had to install the plugin with
npm install -s cordova-plugin-bugfender
and add the API key and configuration to my capacitor.config.ts
cordova: {
preferences: {
BUGFENDER_APP_KEY: '...',
BUGFENDER_AUTOMATIC: 'ALL',
},
},
When I run the application on an Android phone with ionic cap run android
it instantly terminates with the following error stacktrace in adb logcat
:
01-31 09:00:16.942 23503 23503 E AndroidRuntime: android.content.res.Resources$NotFoundException: String resource ID #0x0
01-31 09:00:16.942 23503 23503 E AndroidRuntime: at android.content.res.Resources.getText(Resources.java:512)
01-31 09:00:16.942 23503 23503 E AndroidRuntime: at android.content.res.Resources.getString(Resources.java:605)
01-31 09:00:16.942 23503 23503 E AndroidRuntime: at android.content.Context.getString(Context.java:766)
01-31 09:00:16.942 23503 23503 E AndroidRuntime: at com.bugfender.sdk.cordova.BugfenderPlugin.pluginInitialize(BugfenderPlugin.java:32)
01-31 09:00:16.942 23503 23503 E AndroidRuntime: at org.apache.cordova.CordovaPlugin.privateInitialize(CordovaPlugin.java:58)
01-31 09:00:16.942 23503 23503 E AndroidRuntime: at org.apache.cordova.PluginManager.getPlugin(PluginManager.java:171)
01-31 09:00:16.942 23503 23503 E AndroidRuntime: at org.apache.cordova.PluginManager.startupPlugins(PluginManager.java:97)
01-31 09:00:16.942 23503 23503 E AndroidRuntime: at org.apache.cordova.PluginManager.init(PluginManager.java:86)
01-31 09:00:16.942 23503 23503 E AndroidRuntime: at com.getcapacitor.cordova.MockCordovaWebViewImpl.init(MockCordovaWebViewImpl.java:58)
01-31 09:00:16.942 23503 23503 E AndroidRuntime: at com.getcapacitor.Bridge$Builder.create(Bridge.java:1303)
01-31 09:00:16.942 23503 23503 E AndroidRuntime: at com.getcapacitor.BridgeActivity.load(BridgeActivity.java:72)
01-31 09:00:16.942 23503 23503 E AndroidRuntime: at com.getcapacitor.BridgeActivity.onStart(BridgeActivity.java:110)
01-31 09:00:16.942 23503 23503 E AndroidRuntime: at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1510)
01-31 09:00:16.942 23503 23503 E AndroidRuntime: at android.app.Activity.performStart(Activity.java:8603)
01-31 09:00:16.942 23503 23503 E AndroidRuntime: at android.app.ActivityThread.handleStartActivity(ActivityThread.java:4191)
01-31 09:00:16.942 23503 23503 E AndroidRuntime: at android.app.servertransaction.TransactionExecutor.performLifecycleSequence(TransactionExecutor.java:221)
01-31 09:00:16.942 23503 23503 E AndroidRuntime: at android.app.servertransaction.TransactionExecutor.cycleToPath(TransactionExecutor.java:201)
01-31 09:00:16.942 23503 23503 E AndroidRuntime: at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:173)
01-31 09:00:16.942 23503 23503 E AndroidRuntime: at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:97)
01-31 09:00:16.942 23503 23503 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2571)
01-31 09:00:16.942 23503 23503 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:106)
01-31 09:00:16.942 23503 23503 E AndroidRuntime: at android.os.Looper.loopOnce(Looper.java:226)
01-31 09:00:16.942 23503 23503 E AndroidRuntime: at android.os.Looper.loop(Looper.java:313)
01-31 09:00:16.942 23503 23503 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:8741)
01-31 09:00:16.942 23503 23503 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
01-31 09:00:16.942 23503 23503 E AndroidRuntime: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:571)
01-31 09:00:16.942 23503 23503 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1067)
Ionic Angular 6.1
Capacitor 3.7
Do you have any clue what's going on and how I can fix it?
How to import this? Can't find it under @ionic-native in node modules after installation
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.