-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue on get display function #43
Comments
Any solution? Please let me know |
@VNAPNIC Could you please help here. When we test using release apk its not working |
I had the same problem. When I tested my application in debug mode it worked perfectly. But when I created a release version it stopped working. The solution was to add the following permissions to the 'AndroidManifest.xml': |
@ManuelAcBl Tried that but not working, its not discovering. |
Future<List?> getDisplays({String? category}) async {
List origins = await jsonDecode((await _displayMethodChannel
?.invokeMethod(_listDisplay, category))) ??
[];
List displays = [];
for (var element in origins) {
final map = jsonDecode(jsonEncode(element));
displays.add(kReleaseMode
? displayReleaseFromJson(map as Map<String, dynamic>)
: displayFromJson(map as Map<String, dynamic>));
}
return displays;
}
when my app is on release mode then its shows null display id's but when debug mode its working...
The text was updated successfully, but these errors were encountered: