Notification icon not displayed in samsung Android 7 - notifications

I am trying to display notification icon for my app. For all the OS versions and devices it is working fine except Samsung devices with Android 7.
Notification icon in status bar.
Here is the actual notification icon i am displaying.
Icon is fully white and transparent in middle, so not visible here.
Here is the code I am using to display icon.
Uri defaultSoundUri = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION);
NotificationCompat.Builder notificationBuilder =
new NotificationCompat.Builder(getApplicationContext())
.setSmallIcon(R.drawable.ic_comment)
.setContentTitle(messageMap.get(MESSAGE_KEY_NOTIFICATION))
.setSubText(getTitle(eventType))
.setAutoCancel(true)
.setColor(getResources().getColor(R.color.primary_blue))
.setSound(defaultSoundUri)
.setContentIntent(getPendingIntent(eventType))
.setGroup(GROUP_ID_TEAM_INVITATION);

It was the icon which was causing the issue. Icon was not in proper required size.

Related

How to control windowswidth and windowsheight in modal in react native for responsivness?It is working fine in screen code but not in modal

How to control windowswidth and windowsheight in modal in react native for responsivness?It is working fine in screen code but not in modal.
I have created the react native screen by using windowswidth and windowsheight which works fine while portrait and landscape....But when i created a modal in this it not works fine height and width does not change white change the orientation of device in modal

Navigation Bar is not transforming in RTL mode xamarin forms

I was using a masterdetailpage in my app which was working fine in RTL mode once i added
FlowDirection="{x:Static Device.FlowDirection}"
and i set flow direction dynamically in App.cs
but i have to change it to flyoutpage which is working well in RTL but the navigation bar is not transferring to RTL.
hamburger icon is fine
I've a problem with the navigation bar
//Start of the app in App.cs
MainPage = new NavigationPage(new Login() );
//After Successful Login
Application.Current.MainPage.Navigation.PushAsync(new FlyoutMainPage());
// in FlyoutMainPage()
NavigationPage.SetHasNavigationBar(this, false);
There are some limitations about RTL localization in xamarin forms. You could refer to Right-To-Left localizations limitations.
NavigationPage button location, toolbar item location, and transition animation is controlled by the device locale, rather than the FlowDirection property.
That means you could change the language and region to make it.
And then you have to tell your application that it’s allowed to recognize a right-to-left layout. For iOS, add the right-to-left language in the CFBundleLocalizations section of your Info.plist. Such like the following:
<key>CFBundleDevelopmentRegion</key>
<string>ar</string>
<key>CFBundleLocalizations</key>
<array>
<string>ar</string>
</array>
For Android, you could add android:supportsRtl="true" to your application tag in your AndroidManifest.xml
For more info, you could refer to Right-To-Left Localization in Xamarin.Forms
Hope it works for you.

Video in full Screen not working in Android react-native-video

<Video
source={{ uri: "http://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4" }}
resizeMode="cover"
repeat
controls
fullscreen = {this.state.fullscreen}
fullscreenOrientation = {"landscape"}
//onBuffer={this.onBuffer} // Callback when remote video is buffering
//onError={this.videoError} // Callback when video cannot be loaded
style={styles.backgroundVideo}
/>
I am using this above code and in the Android manifest orientation in portrait. I am click on the full screen state has been changes according to it. But it just exit in a second. As i am getting a little fluctuation and maybe the app is showing full screen and then exit from full screen. But i am not able to see it. Or you can say full screen is not working. As in the IOS it is working properly. I tried multiple from github but not able to achieve it.

When I tap with Detox, the button is not tapped. However it can be tapped if I just click at it

The problem is when I tap with Detox, the button is not tapped. However it can be tapped if I just click at it.
version of Detox: 16.8.2,
version of React Native: 0.57.1
Solved.
This happened because I used device.openURL({url: 'https://...' }) previously to open the app from a deep link.
Instead, it worked after opening a new instance of the app with a deep link in argument: device.launchApp({newInstance: true, url: 'https://...' });
After this, the interaction can be performed.
It looks like a bug with the method device.openURL()

react-native-image-viewer - Landscape View didn't work on IOS

On Android, Landscape-Mode works like a charm, but on IOs I've found following issue:
Mobile-Device is in Landscape-Mode:
I click on an Image (Touchable-Opacity set the state modalShow
The Landscape-Mode will be switched to Portrait-Mode, after that the Modal appears
If I close the Modal, the App switch back to Landscape-Mode.
Any Idea, why this only happend on Iphone, but working well on Android?
You have to add this (or only some of them like you're needs) to your Modal, which encapsulate the Image-Zoom Component:
supportedOrientations={
[
'portrait',
'portrait-upside-down',
'landscape',
'landscape-left',
'landscape-right'
]
}
Consider using a library to manage the screen rotation https://github.com/yamill/react-native-orientation