I am working on a Xamarin Forms project, and I am trying to implement some geofencing. It is working well, but when the app is closed, it is not doing anything.
I am using this NuGet (https://github.com/CrossGeeks/GeofencePlugin) and different Android OS', which are Android 7, 8 and 9.
I implemented everything as said on the GitHub page, and the Android specifics in the Android project. In the console it appears that the service is started.
I did some documentation about services but from what I understand from the GitHub page you don't need to implement anything else, and the restrictions begin with Android 8, but on Android 7 it still doesn't work.
Related
I am new to Xamarin and I have successfully created an application in Xamarin for iOS. What I need is a way for this application to be viewed in the browser as a PWA. I figured to learn xamarin because I thought that this was a useful resource.
I have looked in to ooui but I can't successfully attach my Xamarin project to ooui.
At the end of this project I will have a running PWA coded in c# for iOS in the browser.
A link to the Xamarin can be found here:
https://github.com/SunRhythms/iosslidingpuzzle/tree/master/iOSSlidingPuzzle-3
Welcome to Xamarin! Your github repo is set to Private in it's setting.
Gathering from your other question as well, it's clear that you are using Native Xamarin.iOS and not Xamarin.Forms. (They have several differences if you check this)
Presently, there is no way of porting your Xamarin.iOS project into a PWA that has been made public. If you do convert your project manually into a Xamarin.Forms project, you could potentially use Ooui to convert Xamarin Forms into high performance WebAssembly code.
It seems like you have a sliding puzzle game, so it would be cool if you do end up doing it! Share it with us and the rest of the Xamarin community
I have one question. I writing Android app in Xamarin. I published it on Google Play.
As I understand when I reinstall Windows and Xamarin SHA-1 code will change. And I cannot publish my app updates?
Or how I can publish app without creating new in Google Play?
Can a Android Hybrid App with some plugins written in Java and others imported from Cordova, be made windows phone complaint using Xamarin ?
Is there any such feature in VS 2015 from which conversion of android app to windows be made possible without much rework. Please help.
No. Xamarin will not allow you to automatically convert an app from one platform to another.
Microsoft has announced Project Astoria as part of Windows 10. This will enable Android apps to run as Windows Universal apps.
Can a Android Hybrid App with some plugins written in Java and others
imported from Cordova, be made windows phone complaint using Xamarin ?
No you cannot.
There are two ways to port Java code to C#.
The first way is to port the code manually.
The second porting methodology is to try and automate the process by using a code converter.
I'm working on a mobile app with Xamarin and I need to use a librairy for webservices which works on Android, iOS and Windows phone !
I checked a long time on google, and I think the best one is RestSharp Portable 3.0.1.
First I launch Visual studio and I click on file - new - project - visual C# - Mobile APPS and then BLACK APP (Xamarin.forms Portable).
After this, I got a full project with :
1 - My project (HelloWorld here for example)
2 - My project.android
3 - My project.iOS
4 - My project.WinPhone
I click on the 1 and then I add the RestSharp Portable references via Nuget and it's okay.
Now, i'm trying to use it but I cannot find anything on google about it, I don't know if it's because it's a new version but I have nothing on it.
So the question is : WHat is the best using WebServices into Xamarin for a cross app ?
Thanks guys !
I use RestSharp with no issues.
Here is the component link.
And here is their website.
It doesn't say that the component supports windows phone but I'm sure you can port it.
Im having serious problems with screen rotation in Windows Phone. The project Im currently working started in the WP 8.0 version. After the 8.1 release, I updated my VS 2013 to the 2nd update and I migrate my project to 8.1. My problems is that, when I try to use the command: “DisplayInformation.AutoRotationPreferences = DisplayOrientations.Landscape”, inside a click button event, the app running on my device (nokia lumia 920 with 8.1) does absolutely nothing.
I also tried to change the Supported Orientation Option in Package.appxmanifest but such option is not presented there! !
The weirdest thing is that everything works just fine (both code, and the appearance of the “Supported Orientation” option in the Package.appxmanifest) when I create from scratch a new project WP 8.1 project in visual Studio. I also noticed some other differences like the lack of wmappmanifest.xml on this scratch project.
Image comparing both projects
If you guys want to check the issue, download the google ad sample for WP, upgrade it to 8.1 and add the rotation code above. It will do nothing. If you create a new empty 8.1 project and do the same thing, everything works fine.
https://developers.google.com/mobile-ads-sdk/download#downloadwp
My question is, what the hell is going on with project migration? Is there anything I`m missing, so that the old project is no totally upgraded yet?
DisplayInformation.AutoRotationPreferences is for WP8.1 RT (RunTime) apps only. When your upgrade your existing WP8 app to WP8.1 it is still a WP silverlight app. Thats what the problem is. When you create a WP8.1 from scratch you are creating a WP8.1 RT app. So the code works.
Take a look at the MSDN reference on the bottom is states that the API is only for Win8.1 RT Apps