ReactPlayer required two clickes to start the video on iPad and iPhone - reactjs

I have implemented a React Player. On iPad & iPhone once I click over the start button the video starts and then immediately pauses. So, another click over the start button is needed.
later on, I've got the following error:
{"message":"The request is not allowed by the user agent or the platform in the current context, possibly because the user denied permission.","name":"NotAllowedError","method":"play"}
Note: it works well in windows.

Related

Sharing Jobs on Linkedin from externa mobile app (Firstbird)

Currently (since 2 days) it is not possible to share jobs via the mobile app firstbird2go.
before it was perfectly fine.
Right now it is leading to an error message and a strange userprofile (which is not mine) see left side corner user icon. Seems to be a random one.
Error message
This behavior is valid for every user of the firstbird app.
You can workaround by sharing the job clicking (iOS) to open up in safari browser.
I need your help as this looks like a linkedin issue
Tried to workaround.
Need information from Linkedin Side

Flutter How to preserve the file created through getApplicationDocumentsDirectory() on iPhone?

I made an app for which I store input data in a file (using getApplicationDocumentsDirectory()), everything works fine, except on the physical iPhone where I cannot access the data again if I quit the running app (by swiping the app after having pressed the iPhone button). Also when I reinstall the app from my code the directory changes each time (for the material iPhone). I would appreciate any help to find a solution, I'm just wondering wether I must save the dir.path using key:value.

MPVolumeView not showing audio routes on iOS 11

My app displays MPVolumeView button. When no earphone or bluetooth headset is not connected, clicking on this button shows two options. iPhone and iPhone speaker (for speaker and ear piece). This was perfectly fine till iOS 10. But on iOS 11, this button is disabled. It shows available routes only when connected to wireless headset.
I do not see any change or deprecated APIs in MPVolumeView. Anyone else seeing this issue?
Also a thing to note here is I still see old volume control indicator while I read about volume control indicator designed differently on iOS 11.
Figured out that I need to use AVRoutePickerView on iOS 11. This offers audio route options and also volume slider.

Android Kiosk Mode without lockscreen

I´m trying to configure a Android Single Use app. I´m using a Huawei P8 Lite with Android 6.0 and a Samsung Galaxy A3 2017 with Android 6.0. I´ve set the app to Device Owner and everything works well. I´ve deactivated Toast messages via adb and set the home button to the app. So everything works fine. When I start the app you can´t leave it anymore, even with a restart. But now there are 2 problems left. On the Samsung it works fine to deactivate Toast messages with the adb code
adb shell appops set android TOAST_WINDOW deny
but on the Huawei it does not work. It doesn´t show an error.
The second problem I got with the Samsung. When I restart the Huawei and press the "Home" Button I get directly into the app without having to swipe at the lockscreen. When I open the app at the Samsung it´s the same, but after a restart I always get into the lockscreen before entering the app. This is a little problem because it´s possible to open the dropdown menu with swiping down. The buttons there do not work but I want to get directly into the app when I press the Home or Power button.
So my Questions are:
- How to deactivate the toast messages on the Huawei?
- How to deactivate the whole lockscreen on the Samsung?
Anyone got an idea?
Thanks
To bypass the lockscreen on the Samsung, you can try wake up the device by launching an activity as soon as the device starts, with the following flags
this.getWindow().setFlags(
WindowManager.LayoutParams.FLAG_DISMISS_KEYGUARD |
WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED |
WindowManager.LayoutParams.FLAG_TURN_SCREEN_ON,
WindowManager.LayoutParams.FLAG_DISMISS_KEYGUARD |
WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED |
WindowManager.LayoutParams.FLAG_TURN_SCREEN_ON);
copied from how to wakeup android phone from sleep?. Just make sure that you have chosen "None" as a screen lock type or called setKeyguardDisabled, which has the same effect.
To deactivate toast you need root privilege, so your device needs to be rooted and you need to do
adb root & adb shell appops set android TOAST_WINDOW deny

Issue with UIDocumentInteractionController iOS11 beta 4

I have a set of apps (e.g AppA and AppB). Lets say AppA programmatically sends a zip file to another app. On AppA UIDocumentInteractionController popover is displayed with Copy to AppB icon.
Once I choose AppB it sends the zip file to AppB. The file gets copied in required folder of tht AppB and the control navigates back to AppA.
So this functionality works perfectly fine on iOS 10.3.3.
However, on iOS 11 beta 2 and now on beta 4 too, this feature does not work. The document controller popover opens and then it says unable to load on the top. Even if I click the Copy to AppB icon to copy, it does not do anything. In previous versions I was not getting this Unable to load message on the UIDocumentInteractionController popover on top as highlighted in the image below
Doc controller image.
I have checked that the plist of both apps has the LSApplicationQueriesSchemes
Update 1:
While debugging all the delegate methods do get called viz., willBeginSendingToApplication and didEndSendingToApplication. When I sending this file to another application, I dismiss thedocContoller. So even the documentInteractionControllerDidDismissOpenInMenu also gets called.
So still the docController dismisses and activity indicator Sending load to application is displayed and remains there forever. The AppB is not launched.
New findings on iOS 11 beta 5
The Unable to Load message on the UIDocumentInteractionController is no more present. However, on click of the icon AppB the problem remains.
I've seen this problem occur where the file to be copied is in the app bundle. With iOS 10 it worked just fine direct from the bundle.
In iOS 11 a file located in the app bundle will copy fine to Apple's own apps but not to third party apps. Copying the file from the bundle to the tmp folder, then using that file and everything works.

Resources