jamesmontemagno / SettingsPlugin

Read and Write Settings Plugin for Xamarin and Windows
MIT License
324 stars 80 forks source link

No support for android wear #106

Closed kevingoos closed 6 years ago

kevingoos commented 6 years ago

I was testing the settings plugin on android wear, but no luck. There is no support for android wear included?

jamesmontemagno commented 6 years ago

Android wear is just an android app, so would work the same there as long as the API is provided. Since you didn't provide much information as to what happened not sure how to help here so please fill in more information.

kevingoos commented 6 years ago

Yea srry for not giving enough information. The problem that I am heaving on wear is as followed.

I use the following code to get to the settings (same as in the documentation)

private static ISettings AppSettings
{
    get
    {
        if (CrossSettings.IsSupported)
            return CrossSettings.Current;
        return null; // or your custom implementation 
    }
}

On an normal android phone this works perfectly, but on an android wear device this will give back null instead.

I can create/include a sample if this helps?

jamesmontemagno commented 6 years ago

Did you install the NuGet into your Wear app?

kevingoos commented 6 years ago

@jamesmontemagno Srry for my late reaction, yes I did install nuget in it. I installed the package from the nuget SettingsPlugin. Xam.Plugins.Settings

prashantvc commented 6 years ago

@kevingoos could you share a test project demonstrating this problem? It will help us to troubleshoot the issue