I am integrating Freshdesk in android(Nougat) following the steps mentioned in the link below:
I added the dependency in gradle file with latest version of freshdesk. In the first step for integration mentioned in the link above, it said we might get the following error as a Toast message
"Missing/Bad FileProvider for Freshchat. Camera capture will fail in devices running Nougat or later versions of OS (error code 354)"
To avoid the error, i added following code in my AndroidManifest.xml file and String resource for "freshchat_file_provider_authority". String resource "freshchat_file_provider_authority" and authorities in the AndroidManifest.xml file are having the same package names.
<provider
android:name="android.support.v4.content.FileProvider"
android:authorities="com.mypackage.provider"
android:exported="false"
android:grantUriPermissions="true">
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/freshchat_file_provider_paths" />
</provider>
<string name="freshchat_file_provider_authority">com.mypackage.provider</string>
But Still i am getting the same error : "Missing/Bad FileProvider for Freshchat. Camera capture will fail in devices running Nougat or later versions of OS (error code 354)"
Please help. Thanks.