splash screen in pubspec.yaml throws error A dependency may only have one source - splash-screen

i'm trying to get splash screen working. according to pub.dev i install it into pubspec.yaml the way i have it. I've seen a video of someone else using it the way i have it and it works for them. I've included a snippet of what i have. The error i'm getting is
I have searched on this forum and read the solutions but i'm still getting the same error. I've tried changing min to max version, i've tried moving splashscreen around to different parts of pubspec.yaml
dependencies:
flutter:
sdk: flutter
# The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons.
cupertino_icons: ^1.0.2
splashscreen: ^1.3.5
dev_dependencies:
flutter_test:
sdk: flutter
I've also tried splashscreen: ">=1.2.0 <1.3.5" just incase that could work. Please someone tell me how to get this working. Why i want this to work so bad is i see it shows loading icon right at the bottom to show the user the app is loading.

I ended up putting it under "dependencies" and left it there. I carried on working on the rest of the project, eventually after 1 day splashscreen got accepted, i really didn't do anything.

Related

Error while implementing firebase in expo snack (react native)

image
I encounterd this error while importing firebase to my expo snack which is use for authentication in my app project. Can anyone help me?
The problem is with babel:
Try this first: npm add #babel/runtime
And if that doesn't work try to do this:
as was mentioned above, looks like the presence of this property
watchFolders: [${__dirname}/../..],
in metro.config.js solves the problem. I have a monorepo and mobile app is one of packages, that is why I need ../..
BTW in my case, interopRequireDefault problem appears only when I make a release build with
react-native run-android --variant release
developing mode ( react-native run-android ) works fine even without metro.config.js file
Also, there is no problem if a project is not configured as Monorepo
Reference: https://github.com/facebook/react-native/issues/27712

React native push notification using firebase

I have finished installing initial setup for android ,following this link and now trying to setup Notification installation on Android facing errors tried a lot but not getting a proper solution.
My error is in below,
It is actually looking for notification icons in drawable folder with the name ic_stat_ic_notification, and color values in android resource folder. You need to create those. If you wish to use default, just remove these from android manifest.

Realm Android example in Android Studio are not working

I follow these instructions to get the examples working in Android Studio but I get problems with Gradle (as shown in image and video below).
Any idea on how to fix this ?
This happens with current master branch.
Here is a short video screen capture showing how this happens : https://youtu.be/H7djFyrxPxY
v1.1.0 branch (https://github.com/realm/realm-java/tree/v1.1.0) instead of master should work fine.
Or you need to execute ./gradlew installRealmJava before importing examples to build and install latest SNAPSHOT.
Well, you are definitely using 1.2.0-SNAPSHOT without adding the SNAPSHOT repository
maven {
url 'http://oss.jfrog.org/artifactory/oss-snapshot-local'
}
That could be causing this problem.

Issue integrating analytics plugin in Mobile First Application project

I have a problem...
I'm try to add this plugin: https://github.com/danwilson/google-analytics-plugin.
I'm develop an application with: AngularJS, Ionic and Mobile First Platform 7.1(MFP), in this version of MFP I must add the plugin manually.
iOS works fine.
My problem is Android:
Error: "The import com.google.android cannot be resolved".
I download Google Play Services with SDK but the problem continues...
Any idea to solve this problem?
Regards.
This other plugin https://github.com/appfeel/analytics-google uses gradle dependencies which should solve this problem.
Other option could be to remove google play dependency from the plugin you mentioned and manually modify gradle (actually I don't recommend this option as gradle gets generated automatically each time you remove/add the platform).
Other option is to modify the plugin itself (maybe a github fork). Here you can see what should it be modified: https://github.com/appfeel/analytics-google/pull/11/files

Meteor Cordova Orientation

I am attempting to lock the orientation of the meteor cordova build to portrait mode.
I have set up a top-level file called mobile-config.js
In that file I included:
App.setPreference('Orientation', 'portrait');
This seems to have no effect, it still switches to landscape mode.
Does anyone know how I could implement portrait lock? Thanks!
It appears to be an open bug, check this answer here and the bug itself here.
Apparently the simplest way is to edit the Manifest.xml file directly (what comes out of the meteor build command), but I'd use a plugin to avoid having to edit files manually after each build.
Bottom line, to fix it, wait for an official bug fix or meanwhile use a plugin.
Not sure if you have fixed it yet. I had a similar issue and resolved it for android app. Please note this solution has been tested for Meteor running on android device using:meteor run android-device. Meteor version is 1.3, also works on 1.3.1. Just stop your meteor server, uninstall the app from android device. Then inside the meteor project directory, meteor reset. Then meteor run android-device.
Let me know if this helps.

Resources