Ionic Native Camera is not calling getPicture() callback on Android Device - ionic-framework

I am working on Ionic Native Camera Plugin and have followed all instructions given here on the page in official documentation. Here is the code of I have written for it:
getPhoto(){
console.log("In get Photo Method");
const options: CameraOptions = {
quality: 100,
destinationType: this.camera.DestinationType.FILE_URI,
encodingType: this.camera.EncodingType.JPEG,
mediaType: this.camera.MediaType.PICTURE
}
this.camera.getPicture(options).then((imageData) => {
console.log("Check Image"+imageData);},
(err) => {
console.log("Check Error Red"+err);
});}
The console log I get on the chrome developer tools is displayed as below which shows no getPicture() being called:
But when I run it on browser just for the sake of testing, It shows console messages and warnings as below:
Note: No exception or app crash happens, The execution just simply get stuck at callback function this.camera.getPicture

Can you explain further what is your issue? you are not getting the photo or what?
Because the function is being called, console is logging the message correctly.

The problem was due to conflict of plugins, Copied source code into new project and installed plugins which resulted in resolution of conflict and issue. There are suggested ways to reinstall plugins but non of them worked for ionic3.

faced the same issue. i checked my cordova version and camera version, the camera version was like 2.4.20 but it was too old when i checked the documentation. So i updated the camera plugin and removed android platform and then added it again.

Related

Flutter app not working properly in release version

I am using Firebase in my project to get the data. Problem is when I run debug version app works fine and show the fetched data but when I create a release version of it and then open my application It's shows blank screen. It is strange and I am not getting why this happening. To understand the issue I have given the two videos of it and also the project repository link, and the problem I am facing in the Book_Screen.dart.
Project Link: https://github.com/jaydip-pawar/Hindi-Audio-Bible
In Debug Version:
In Release Version:
It is hard to catch problem in release mode. But you can try to open "Uncaught Exception" from the debug panel and if some error occurs, try to fix them.
If you can't solve the problem, you can comment widgets one by one. In this way, you can look for the specific lines of code that causes the error.
If you are using playstore inbuilt keystore, add those sha1 from playstore to firebase app setting.

Can't subscribe to topic in a Flutter app on iOS using firebase_messaging

I am using firebase_messaging to manage notifications on a Flutter app.
No problems with Android.
When I try in iOS to subscibe to a topic (again, which WORKS PERFECTLY on Android) I get no error, but I've understood that something bad is happening in the background, since the next line of code is always skipped, exactly like when Flutter goes in exception:
void _subscribeToTopic(String topic) async {
await FCMHelper.firebaseMessaging.subscribeToTopic(topic);
await SharedPrefsHelper.sp.setBool(topic, true);
}
The await SharedPrefsHelper.sp.setBool(topic, true); is NEVER executed, meaning that subscribeToTopic is going in error.
I'm astonished that as it seems, nobody had this problem before me (no issue on GitHub, no question on StackOverflow) but I really don't know what to do, especially because I don't know Swift nor Objective-C, so if there is a bug in the code, I'm not able to find it.
Please help me. Thanks
solved by deleting and re installing pod files
As what in the following GitHub issue
https://github.com/FirebaseExtended/flutterfire/issues/1943
To delete and re installing pod files see this link Flutter iOS build failed an error of pod files: Podfile is out of date

Facebook session data not recovering

I'm on Unity 5.1.1, Facebook 7.0.2 beta and testing on Android 5.1 and iOS 8.4 devices.
I'm doing FB.Init(); with "status = true" to recover the session and "autologin". But my problem is that it doesn't work. When I call Init in onInitComplete callback FB.IsLoggedIn returns always false.
I have tried in my project and in a blank project with the example scene. In the example scene I click on FB.Init, FB.Login, I log in then I close the app and open again and I have to login again.
Is it a bug?
We're having the same issue. It is a bug on Facebook's part. The result of the Init call doesn't seem to include any information about the player at all. In fact, it includes different type of useless data depending on the current platform.
Facebook has acknowledged the bug and they said it's fixed in the next build which hasn't been released yet. You can see the bug and that acknowledgment here.
https://developers.facebook.com/bugs/1459551294340956/?search_id

Facebook-Unity-SDK Feed Callback Not Called

Problem
FB.Request() callback parameter is never being called on Android. It works fine on iOS.
Info
Unity Version: 4.3.0f4
FB SDK Version: 4.3.6
FB SDK Build Version: 131121.17562b74012d24a
Repro Steps
Start a new Unity project and import FB SDK 4.3.6
Change to an Android project and fill out your keystore info
Edit FacebookSettings to match what's in developers.facebook.com in your app
Edit InteractiveConsole.cs to add a Debug.Log() on the first line of Callback(FBResult result) (which is the function that should be called when a feed request is done).
Build the project with the InteractiveConsole scene
Init, Login, and try to post. Notice that your debug log never occurs even though the adb logcat says "“FBUnitySDK( 3272): sending to Unity OnFeedRequestComplete({“id”:”12321312321 blablah”})"
Details
We noticed that OnFeedRequestComplete(string message) in AndroidFacebook.cs, has nothing in it. Also, the callback parameter in FeedRequest(params…) in AndroidFacebook.cs is not being used at all.
Sorry if this is a known-issue but I don't see any similar posts on StackOverflow or on developers.facebook.com/bugs.
Thanks for pointing that out. I'm getting a fix in for that. It'll be out for the next update.

not able to see the log statements in ddms

I am trying to install my worklight application on the android htc mobile. The application was getting installed successfully but the problem is I am not able to see the log messages.As soon as I connect my device it is giving me the following errors:
1) "couldn't find the mandatory host http header"
2)"addition of standard header pragma is discouraged as a future version of the RESTlet API will directly support it"
Can anyone please help me in solving this issue?
Thanks in advance
The question's description text is not very helpful... can you please elaborate?
What is "htc mobile", is there a specific device model and Android OS version?
What do you mean by "log messages"? Are you referring to the output in LogCat?
Can you try with a NEW - unmodified - Worklight app (with the Android environment) and see if you still get these errors?
Do you see Worklight-related logs regardless of these errors? Is the app working?
Right now this does not seem to be a Worklight-related issue.
There are some questions already in Stackoverflow that seem to touch these supposed issues. You can go over them:
Android LogCat continuously repeating a warning: "Addition of standard header .... not allowed"
Logcat continously shows messages
A common thread between them seems to be some OTHER app that is leaking. Try closing as many apps before installing the Worklight app.
In LogCat you can also create a filter to see log messages related ONLY to the app, and not to anything else that may be happening in the device (with other apps).