Setting up Twilio Push notifications on an Android app - c#

I have a cross platform app set up using Xamarin forms in Visual Studio 2017. I am wanting to integrate Twilio and their push notification service. I am in the process of setting the service up on Android first using this guide:
https://www.twilio.com/docs/notify/configure-android-push-notifications#step-3-set-up-your-projects-dependencies
However i am stuck on step 3 as it asks to modify the 'project-level build' file. I can't see this anywhere, how do i access this file in Visual Studio 2017?
Thanks.

build.gradle is specific to Android apps built in Java.
For a Xamarin.Forms app built in C#, you'll want to use the Xamarin.Firebase.Messaging NuGet package: https://www.nuget.org/packages/Xamarin.Firebase.Messaging/

Related

Windows Phone emulator with Xamarin

I am creating a Xamarin project, and I made it working with Android and iOS, but I can't figure out how to start the Windows Phone 8.1 emulator.
Windows Phone 8.1 is created as a project just like the other platforms.
I am running Visual Studio 2015 Community and Xamarin Business.
EDIT
I made it running by setting it as startup project, but are there others way by e.g. changing the project (where you choose if it is debug or release)?
I also want to know, how I can create the application to Windows store
To create app package go to
Project->Store->Create App Package - It will open wizard for creating app package that You are able to send to store (reference: https://msdn.microsoft.com/en-us/library/hh975357.aspx)
As for the other ways:
In Visual Studio 2015 You can choose in taskbar: debug/release, CPU architecture, startup project and where to deploy an app - eg. emulator or device

how to deploy windows phone 10 application to a device?

I am using a Nokia lumia630 device, which uses latest windows 10 insider preview build available.
i created a sample windows UWP application and took a build of the same.The output of the build is an Appx.
How can i install this Appx to my device? Anyone having any idea?
Deploying apps to Win 10 Mobile is a bit difficult when using the command line tool. A great alternative is the Device Portal that is available under the “For Developer” settings.Its available with the latest build.
Now You can connect to the device using a web browser and manage apps via the Apps page with no pairing/pin required. This seems to be an easy way of deploying apps than using command line.
Microsoft developed a command line tool called WinAppDeployCmd so you can deploy an Universal Windows app from a Windows 10 machine to any Windows 10 Mobile device via USB or WiFi (since they're on the same subnet). That's a perfect solution if you doesn't have Visual Studio, the app source code or you're under a Hyper-V Virtual Machine.
Basically you will need:
Windows 10 SDK
Generate the .appx package (PC)
Enable the developer mode (Mobile)
Turn on the discovery mode (Mobile)
Get the code to pair devices (Mobile)
Get mobile IP address using WinAppDeployCmd tool (PC)
Run command (PC)
The command will look like this
WinAppDeployCmd install -file “<path>” -ip <ip> -pin <pin>
The tool can be found at C:\Arquivos de Programas (x86)\Windows Kits\10\bin\x86\WinAppDeployCmd.exe
You can find a detailed step-by-step tutorial here
Visual Studio allows you to directly deploy an app to a windows phone. You need to register your windows phone as a development phone with Microsoft. Once this is done, you could use visual studio to do this for you. Not sure if you can deploy windows 10 apps to your phone at the moment. Try this link and see:
https://msdn.microsoft.com/en-us/library/windows/apps/ff769508%28v=vs.105%29.aspx Remember to Upvote if this helps.
You can register your Windows Phone 10 in developer mode. Follow these steps and you can achieve your goal.
When you use device portal like mentioned in the answers above, some might get the following error
"Failed to start deployment. Failure text: Package failed updates, dependency or conflict validation. (0x80073cf3)"
To fix this:
Add the dependencies found under "Dependencies/ARM" folder.Add it here.
I had to add following dependencies to make it work:
Microsoft.NET.CoreRuntime.1.0.appx
Microsoft.VCLibs.ARM.Debug.14.00.appx

Install-Package : Unable to find package 'Phone.Notifications.BasePage.'

I was trying to implement Push Notification.I was trying based on this Link (http://www.wadewegner.com/2011/11/adding-push-notification-support-to-your-windows-phone-application/) in VisualStudio Express 2012 for windows phone.
When I was installing Package 'Phone.Notifications.BasePage'.
Following error was raising.How can i overcome this.
And also can anybody please tell me can I add Windows Azure Project.(ASP.Net MVC3 Webrole)to my exiting solution.Which Azure Package wil be supported in VS Express 2012 for windows phone.
Based on this link(https://msdn.microsoft.com/en-us/library/azure/ff683673.aspx) I am thinking WindowsAzurePackage will not be supported in VS Express 2012 for windows phone.I dont have any idea on this(Windows Azure Packages)PUShNotifications.I am Seeking for some help.
ManyThanks in Advance...
Adds a reference to the Azure Service Bus SDK with the WindowsAzure.ServiceBus NuGet package.
This is for 2013 but I am sure it will work in 2012
Look at the end of the following documentation on azures web site
http://azure.microsoft.com/en-us/documentation/articles/notification-hubs-windows-store-dotnet-get-started/
This will only work communicating from your MVC project to azure. Not communicating from your phone directly to the notification hub. You will have to add a rest api to your MVC application and then use RestSharp to send messages to your MVC application from the phone.

Is it possible to develop iOS App on windows using (Xamarin and visual studio) without MAC

I have already developed android app using xamarin and now i want to do same for iOS. As per xamarin's official documentation, i need to have MAC machine to compile my C# code, but i dont have MAC. Is there any workaround or alternative so that i can build ios app using xamarin without need of MAC.
No. The underlying SDK and build tools, including the iOS simulator, are provided by Apple and will only run on OSX.
You can use Cloud Mac service Macincloud which supports Xamarin remote build from Visual Studio. You will not be able to build iOS Apps without a Mac so Macincloud is your best alternative.
As standard Xcode only runs on UNIX/OSX.
However it IS possible to run Mac OSX, in order to develop iOS apps, with software such as VMWare and Parallels - But I won't recommend it in any way.

xamarin studio for ios on windows?

Yesterday at the xamarin webinar I asked if it was possible to install xamarin studio for IOS development on a windows machine and was given the answer that it was possible but developers usually went for visual studio. Today I've tried to find info about how to do this but can only find posts that it can only be done via Visual Studio. Most of the posts are a couple of months old though so which is the correct answer?
Unfortunately, I think your fears are true. Another post talks a little about this:
How to develop iOS app using Xamarin Studio on Windows?
The official Xamarin documentation also says pretty clearly that you need Visual Studio to do iOS development in Windows. On top of that, you also need a Mac on the network to compile the iOS project.
Using Mac build Host you can do but you'll need the networked mac
for developing and debugging too.
or else you can use Xamarin Live Player using which you can
debug,develop and deploy the app completely in windows without the
help of any Apple system but to sign and release the app to appstore
you will need Apple System though
You can access Xamarin Studio from a Windows machine by accessing a remote Mac from services such as MacinCloud.com. Although you are not running Xamarin Studio directly on your Windows machine, the ability to access a Mac server for development allows you to run Xamarin Studio, and other Mac-only tools easily.

Categories

Resources