I want to get the ADID on Android, and IDFA on IOS, how to do this on react native ?
i use this library called react-native-idfa , but the library always said undefined on IDFA
We experienced the same problem. Make sure your iAd.framework is linked the Xcode -> "Build Phases":
They do mention this on their github https://github.com/FreebirdRides/react-native-idfa#podfile
Add AdSupport.framework under "Link Binary With Libraries":
We forked the react-native-idfa if you want to use ours:
https://github.com/FreebirdRides/react-native-idfa
This commit in particular:
https://github.com/FreebirdRides/react-native-idfa/commit/9c6992a53dd109bed41e8c8300906a71e6068043
Related
I'm looking at the Nativescript 4.0 changes listed in here and it says that application.start() is being deprecated for application.run(). I've downloaded the nativescript-template-ng-tutorial and am looking at all the files but I don't see where application.start() is being called.
Where is this being called?
It's called in nativescript-angular
likely related: https://github.com/NativeScript/nativescript-angular/issues/1274
I was studying Javascript / Ember and I was looking into its source codes.
https://github.com/emberjs/ember.js/
While I was studying, I found something interesting and I wonder how it works. As you may know, you can get version number of Ember if you type Ember.VERSION in the browser console. I wanted to do in my project so I started searching codes how Ember did it.
I could find
// in packages/ember/lib/index.js
Ember.VERSION = VERSION;
...
// Later exports Ember object
However I can't find how Ember makes it available in window (from browser). I expected they did like... window['Ember'] = Ember or something like that but I couldn't find any similar codes.
I wonder if there is anyone knows how they make Ember object available throughout window. Thank you so much!
ember-cli-app-version addon can expose your application's name and version info. So you can put your version in your templates via an helper.
The addon also registers the infos to the Ember.libraries so that ember-inspector can understand. You can access the Ember.libraries in a such way:
Ember.libraries._registry.filter(item=>{return item.name==='my-app-name';})[0].version
The addon can give you both package.json information or git describe result.
I'm trying to get loadIntoLocation working, but I keep get the error message,
Property 'loadIntoLocation' does not exist on type 'DynamicComponentLoader'.
I've looked at other examples and used plunker and it works there, but I can't seem to get it working locally. I grep'd the Angular2 core and could not find any mention of a loadIntoLocation function.
How do I find out what version of angular2 I'm using? Can I upgrade? I just used npm install to deploy my environment.
That was removed a while ago as far as I remember. DynamicComponentLoader is deprecated anyway. Use ViewContainerRef.createComponent() instead.
For a full example see Angular 2 dynamic tabs with user-click chosen components
It's been 5 hours i'm struggling with Meteor.
I want to get Geolocation.latLng(). It works perfectly on my browser, I coupled it with GoogleMaps to put a marker on a map. I'm following this example and didn't touch it much.
When I compile on iOS the Geolocation returns weird errors on my simulator (iPhone 6 / iOS 8.3) such as Geolocation failed : Position retrieval timed out, sometimes it's another one which's very similar (note : it asks me if i want to share my location when i launch the app, and i accept)
Sometimes it says it just compiled and I get an old version of my app too.
What's happening ? Is it me or it's really THAT buggy once you try to make a real world project ?
This to-do list tutorial looked very magic but once you understood how it works and you try something real, it's kind of disappointing ... Sounds very unstable and not ready.
Don't hesitate to tell me if i'm doing something wrong ;)
UPDATE : i've searched a lot more and i'm now trying to setup differently the timeout limit of the geolocation package to avoid this error.
Sadly, i realized timeout : Infinity is the default value of the source : sounds like an issue.
Nothing is working so far. If anyone has an idea, let me know on that too ...
I finally made it work. First I realized you have to setup the accessRule thank to Lucas's answer but it wasn't enough.
// In a mobile-config.js in the project
App.accessRule('*://maps.googleapis.com/*');
The iOS Simulator provided by Apple seems to have bugs : the position isn't retrieved correctly, or not at all. It's only working if i set the the Debug > Location to City Ride ; even Apple wasn't working properly on my hand.
If nothing works for you, just try all the possible Location, it might be the problem.
Have you define an accessRule in your mobile-config.js? If not, try this.
App.accessRule('*://maps.googleapis.com/*');
Here, clone this sample app I put together a while back:
https://github.com/ffxsam/whats-nearby
It works on desktop as well as mobile. All you have to do is add a settings.json and add your Google Places API key in there.
{
"apiKey": "...."
}
Simply the issue im calling the file system as :
window.resolveLocalFileSystemURL(cordova.file.applicationDirectory+'/www/icons', function(dirEntry){example=dirEntry}, onError);
and im 100% sure the directory exists in my source folders before building application , but after building application i can see that www/index.html exists but no other folders are found , only when i check particular files like www/img/example.svg cause im sure this will be included as they appear in application preview , and are included in css files , the problem is that i get the following error :
Error occurred during request to file system pointer. Error code is: 1
After lot of searching it appears to be that it is not only who has this issue check this post
a temporary solution is to fall back to old API ver 0.2.5 which works well without this bug , but just in case anyone knows what is going wrong , please provide a clear answer .
It appears to be a bug in 1.3.3 being resolved , for further details check this , and this , just in case anyone is searching for a solution sounds that version 1.3.4 will solve this.