I have implemented push notification in my xamarin.forms app.
I used gsm notification in android and for IOS used plugin.
that works fine when app is in foreground or background.but if i close(kill) app then don't receive notification.
any one have idea about this.
please help.
thank you.
Did you added permissions
iOS:
info.plist
<key>UIBackgroundModes</key>
<array>
<string>voip</string>
<string>fetch</string>
<string>remote notification</string>
</array>
Android:
Manifest file:
<uses-permission android:name="android.permission.WAKE_LOCK" />
<permission
android:name="co.my.packagename.permission.C2D_MESSAGE"
android:protectionLevel="signature" />
<uses-permission android:name="co.my.packagename.C2D_MESSAGE" />
<uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" />
<uses-permission android:name="android.permission.VIBRATE" />
And once deploy application using release mode then try
Related
My application targets api level 32. When running on Android 13 device, ActivityResultContracts.RequestMultiplePermissions() always returns PERMISSION_DENIED even if the user presses on "Allow".
Also, when checking in settings->app->permissions, the IMAGE, AUDIO and VIDEO permissions get granted.
The documentation clearly states that applications targeting api level < 33 should continue asking for READ_EXTERNAL_DEVICE, and the IMAGE, AUDIO and VIDEO will be granted automatically
Tried allowing READ_EXTERNAL_STORAGE permission.
Expected to open Gallery.
Actually, permission was denied.
Apparently, From android 13 and beyond You need to put permissions for READ_MEDIA_VIDEO,READ_MEDIA_IMAGES,READ_MEDIA_AUDIO, not Just requesting READ_EXTERNAL_STORAGE will work alone, won't even show in the permission page in the settings
<!-- Required only if your app needs to access images or photos
that other apps created. -->
<uses-permission android:name="android.permission.READ_MEDIA_IMAGES" />
<!-- Required only if your app needs to access videos
that other apps created. -->
<uses-permission android:name="android.permission.READ_MEDIA_VIDEO" />
<!-- Required only if your app needs to access audio files
that other apps created. -->
<uses-permission android:name="android.permission.READ_MEDIA_AUDIO" />
<!-- If your app doesn't need to access media files that other apps created,
set the "maxSdkVersion" attribute to "28" instead. -->
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"
android:maxSdkVersion="32" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"
android:maxSdkVersion="29" />
We have Xamarin Android App for an Airline, the core use of the app is for Booking and Purchasing ticket, recently we have added new functionality which allows customers to pay with USSD Option, and purchase their ticket. While uploading the app to play store. it is asking us to select the Core functionality of the app.
among the lists which core functionality do I have to select?
we have added the below permissions on manifest
<uses-permission android:name="android.permission.CALL_PHONE" />
<uses-permission android:name="android.permission.CALL_PRIVILEGED" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.MODIFY_PHONE_STATE" />
<uses-permission android:name="android.permission.PROCESS_OUTGOING_CALLS" />
If you have SMS-based fincancial transactions, that's the option you should select.
It's not a matter of what you choose that will get your app selected or rejected either way.
I have two virtual directories in an IIS site.
One is used for a asp mvc web api application.
The other one is used to serve an angular 4 SPA.
The SPA rely on the web api application for its data.
We use the dist output of #angular/cli for the SPA content that is used as the physical path to the second virtual directory.
I'm looking for a way to catch angular routes directly forwarded to the server (i.e.: before the angular app has loaded client-site).
For the sake of clarity, here is my two applications as configured under my site in my applicationhost.config :
<site name="MySite" id="9292">
...
<application path="/spa" applicationPool="Clr4IntegratedAppPool">
<virtualDirectory path="/" physicalPath="C:\angularApp\dist" />
</application>
<application path="/webApi" applicationPool="Clr4IntegratedAppPool">
<virtualDirectory path="/" physicalPath="C:\webApiAspMvcApp" />
</application>
...
<bindings>
<binding protocol="http" bindingInformation="*:9292:localhost" />
</bindings>
</site>
Saying I have the following angular route configured in my angular application : "about/company", I'm looking for a way to handle the call to http://localhost:9292/spa/about/company, for IIS not to try serving static content at this location.
Of course the real static content as-used by the spa should still be served by IIS.
i updated a website with asp.net and c# from framework .net 2.0 to 4.5.1. (I'm using VS2013 Professional Update 4).
I've rebuilded and resolved all errors; (now there are no errors or warnings).
But when i started debug i noticed i loose something:
the complete address
http://localhost:2201/WebSiteName/folder/filename.aspx
became
http://localhost:2201/folder/filename.aspx.
it isn't possible to update virtual url in a web site (only in a web application).
I don't understand if it depend from new web browser (IIS Express in VS2013).
Can you help me?
Thanks
VS2013 uses IIS Express 8.0 and set as main default root the website folder (i mean the real folder where we made our site).
to use this folder in the url you change:
c:\user[username]\documents\IISExpress\config\applicationhost.config
and to find block tag who refer to the website.
copy tag "Application" set new values.
L'applicationPool is set to "Classic" for WebSite while "Integrated" for the WebApplication.
<site name="Prova" id="5">
<application path="/" applicationPool="Clr4ClassicAppPool">
<virtualDirectory path="/" physicalPath="E:\prova" />
</application>
<application path="/MyRoot" applicationPool="Clr4ClassicAppPool">
<virtualDirectory path="/" physicalPath="E:\prova/myRoot" />
</application>
<bindings>
<binding protocol="http" bindingInformation="*:2001:localhost" />
</bindings>
</site>
I wan to open my asp.net mvc website in another PC by using: "http://163.155.xxx.xxx:49397"
I added these codes in my iis applicationhost.config file, but this does not work, any idea?
<site name="PerfM" id="3">
<application path="/" applicationPool="PerfM">
<virtualDirectory path="/" physicalPath="C:\Users\Documents\Visual Studio 2012
\Projects\PerfM\PerfM" />
</application>
<bindings>
<binding protocol="http" bindingInformation="*:49397:163.155.xxx.xxx" />
</bindings>
</site>
I think your bindings may need to be configured quite right.
<binding protocol="http" bindingInformation="*:49397:" />
<binding protocol="http" bindingInformation="163.155.94.115:49397:" />
Try the above. If not maybe try modifying it ussing IIS manager.
You should also disable windows fire wall or open port 49397 for access via HTTP. By default this port will be blocked.
How to turn windows fire wall on and off. I suggest you turn off the fire wall first. That will eliminate it as a potential problem. Once you have the site working from another computer you can try to turn it back on and open a port. Here are some instructions on how to open a port.