|
Hi,
We are using Push Sharp library in VB .Net for sending notifications to iOS device but we arent able to receive notifications on our device.
Code is included below. We have checked the handshake using openSSL and thats also working properly. Please let us know whats wrong in the code.
-------
Imports System.Data.SqlClient
Imports System.Data
Imports System.Linq
Imports System.Web
Imports System.Net.Security
Imports PushSharp
Imports PushSharp.Apple
Imports System.Security.Authentication
Imports System.Net.Sockets
Imports System.Security.Cryptography.X509Certificates
Imports System.Configuration
Imports Newtonsoft.Json
Imports System.IO
Imports System.Collections.Generic
Imports System.Net
Imports PushSharp.Core
Partial Class mobile_app_notification_list
Inherits System.Web.UI.Page
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Try
Dim push As New PushBroker()
push = New PushBroker()
Dim cert As New ApplePushChannelSettings(True, File.ReadAllBytes(String.Format("C:\Websites\mobileapp.sanjeevkapoor.com\PushAppSanjeev.p12")), "pass@123")
Dim settings As New PushServiceSettings()
settings.AutoScaleChannels = False
settings.Channels = 3
settings.MaxAutoScaleChannels = 3
push.RegisterAppleService(cert, settings)
push.QueueNotification(New AppleNotification().ForDeviceToken("6d9471a58384af100a0b854ec907729efb6c5334e4c26822e97eaccc6d48313d").WithAlert("Hello World!").WithBadge(1).WithSound("default"))
'push.StopAllServices(True)
Response.Write("notification sent successfully")
Catch ex As Exception
Response.Write(ex.Message)
End Try
End Sub
-------
|
|
|
|
|
This question would probably be better answered on the Visual Basic forum.
http://www.codeproject.com/Forums/1646/Visual-Basic.aspx[^]
As just a note though you still have to have an app that will consume and deal with those notifications. Have you checked the app to make sure that you have it configured and coded properly to received the notifications?
|
|
|
|
|
Hi admin,
Can I share my iOS apps promotion codes in this platform?
|
|
|
|
|
I want to awitch technology from dotnet to IOS .Can anyone give me information about IOS field and its markiting scope.and how i get start
|
|
|
|
|
|
To switch to iOS you'll want to start with https://developer.apple.com/[^]
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
Hey I am working on iPhone application and it is in two languages Danish and English. So I need to translate my SQL Server database(data) into English (currently it's in Danish) Language. so there are any solution to translate my data.
I am stored my data in one NSMutableArray.
Please give replay if any one know...
SQLServer iPhone
|
|
|
|
|
|
Aavishkar Jugwanth, I want a solution something like, when data fetch from SQL server it translate in the English language.
|
|
|
|
|
Then you need to add some sort of translation library to your project. How else do you think it can be done?
|
|
|
|
|
create local project web using c# run used by iphone.
|
|
|
|
|
|
|
|
Instructions unclear, xCode blue-screened, and morphed into Eclipse... 
|
|
|
|
|
Aavishkar Jugwanth wrote: xCode blue-screened, and morphed into Eclipse
hate when that happens!!! 
|
|
|
|
|
Do you have a question?
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
When it's going to be ready? 
|
|
|
|
|
Mika Wendelius wrote: When it's going to be ready? As soon as payment is posted.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
The cheque is already in the mail. Not necessary to wait for it's arrival before starting the work 
|
|
|
|
|
Can anyone suggest me a good IDE for developing IOS apps with an opensource IDE
|
|
|
|
|
|
Ark07 wrote: opensource
I have not heard of any that are opensource.
I suppose you could use something like limetext[^] or sublime[^] but still not sure how you would go about editing the .XIB or storyboard files.
If you are concerned about cost then maybe you don't realize that XCode is free. I have tried other routes but I personally like working with XCode.
If you just want an alternatives there is AppCode[^] by the same people who did IntelliJ[^].
And if you are comfortable with using or learning either Swift or Objective-C and would rather work with C# there is of course Xamarin[^] which of course has a cost. I have not looked at lately but it used to require XCode to be installed for developing XIB and storyboard files.
|
|
|
|
|
try this ide which is helpful to you https://developer.apple.com/xcode/ide/
|
|
|
|
|
While developing shape drawing app on iOS, which programming platform is mostly used, what's significance of it or any existing case study, please?
|
|
|
|