Welcome Guest! You need to login or register to make posts.

Notification

Icon
Error

Options
Go to last post Go to first unread
gchq  
#1 Posted : Monday, July 16, 2012 11:37:08 AM(UTC)
gchq

Rank: Member

Groups: Member
Joined: 7/16/2012(UTC)
Posts: 18

Was thanked: 1 time(s) in 1 post(s)
Hi There

We have a windows phone app that we would like to deploy for the iPhone, but I am having some trouble getting my head around some of the basics..

Do you have any sample upload code in VB?

Is 'aurup:?' something that only the iPhone can interpret, or should it still work in a standard browser? All we get is 'web page cannot be displayed' both in IE9 and using a HTC Android..

Thanks



Qui me amat, amet et canem meum
Dmitry.Obukhov  
#2 Posted : Wednesday, July 18, 2012 4:10:48 AM(UTC)
Dmitry.Obukhov

Rank: Advanced Member

Groups:
Joined: 5/29/2010(UTC)
Posts: 1,310

Thanks: 8 times
Was thanked: 111 time(s) in 111 post(s)
Hello Dave,

I attached Aurigma Up vb-sample for your reference. Please download and test it. For Android you also should install Aurigma Up on a devise. You can download it from PlayStore. Aurigma Up does not work on Windows or Mac. It is an upload tool for mobile devices only (iPad/iPhone/Android).

If you have any additional questions or problems please let me know.
File Attachment(s):
Samples_iPhoneUploaderJavaScript_vb.zip (199kb) downloaded 30 time(s).
Best regards,
Dmitry Obukhov
Technical Support. Aurigma, Inc.
gchq  
#3 Posted : Wednesday, July 18, 2012 5:13:44 AM(UTC)
gchq

Rank: Member

Groups: Member
Joined: 7/16/2012(UTC)
Posts: 18

Was thanked: 1 time(s) in 1 post(s)
Hi Dmitry

Thanks for your response..

It would appear that some Androids (Linux based at least) are totally Windows compatible and can upload directly to our backend DB just like a Windows phone. I think that was causing some confusion. The other problem is nobody here has an iPhone so we are testing in the dark.

It looks like the Nokia gamble, betting the farm on Windows, could pay off...

I note the javascript that performs a Request.UserAgent to display the install link - but how does that determine if the app is already installed?

Qui me amat, amet et canem meum
Dmitry.Obukhov  
#4 Posted : Thursday, July 19, 2012 4:25:35 AM(UTC)
Dmitry.Obukhov

Rank: Advanced Member

Groups:
Joined: 5/29/2010(UTC)
Posts: 1,310

Thanks: 8 times
Was thanked: 111 time(s) in 111 post(s)
We provides with different upload solutions based on different platforms (Java, ActiveX, HTML5, Flash). You can try HTML5 uploader on Androids. It does not require any additional things installed.
Best regards,
Dmitry Obukhov
Technical Support. Aurigma, Inc.
gchq  
#5 Posted : Thursday, July 19, 2012 5:20:50 AM(UTC)
gchq

Rank: Member

Groups: Member
Joined: 7/16/2012(UTC)
Posts: 18

Was thanked: 1 time(s) in 1 post(s)
Hi Dmitry

It looks like the Android situation is OK - in that with the ones we have tested it uploads directectly to our DB the same way as a Windows phone using a standard asp FileUpload control and converting the file to Byte() by reading the InputStream

Quote:
I note the javascript that performs a Request.UserAgent to display the install link - but how does that determine if the app is already installed?


I cannot see any method from the javascript that determines if your app is already installed and then disables the install link - for obvious reasons if it is not installed it would be better to just have the 'install app' link displayed and not the 'upload file' one - and vice-versa when it is installed.

Edited by user Thursday, July 19, 2012 5:24:54 AM(UTC)  | Reason: Not specified

Qui me amat, amet et canem meum
Dmitry.Obukhov  
#6 Posted : Sunday, July 22, 2012 8:04:53 PM(UTC)
Dmitry.Obukhov

Rank: Advanced Member

Groups:
Joined: 5/29/2010(UTC)
Posts: 1,310

Thanks: 8 times
Was thanked: 111 time(s) in 111 post(s)
Hello,

Unfortunately, there is no feature which would allow to check whether Aurigma Up is installed or not. It is explained by security reasons - it is forbidden to iterate through applications installed on mobile devices.

Edited by user Sunday, July 22, 2012 8:07:29 PM(UTC)  | Reason: Not specified

Best regards,
Dmitry Obukhov
Technical Support. Aurigma, Inc.
gchq  
#7 Posted : Monday, July 23, 2012 6:44:21 PM(UTC)
gchq

Rank: Member

Groups: Member
Joined: 7/16/2012(UTC)
Posts: 18

Was thanked: 1 time(s) in 1 post(s)
Here is one method - check the StatusCode of aurup - if it doesn't load then redirect to Apple to install the app - Assume that Button1.Text is 'Upload Image'

Code:

Protected Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
        Try
            Dim vRequest As System.Net.WebRequest = CType(System.Net.WebRequest.Create("aurup:?uploadUrl=mysite.com"), System.Net.WebRequest)
            Dim vRequest2 As System.Net.HttpWebResponse = CType(vRequest.GetResponse(), System.Net.HttpWebResponse)
            If Not vRequest2.StatusCode.ToString = "OK" Then
                Response.Redirect("http://itunes.apple.com/us/app/aurigma-up/id432611633", False)
            Else
                Response.Redirect("aurup:?uploadUrl=mysite.com", False)
            End If
        Catch ex As Exception
            Response.Redirect("http://itunes.apple.com/us/app/aurigma-up/id432611633", False)
        End Try
    End Sub

Qui me amat, amet et canem meum
thanks 1 user thanked gchq for this useful post.
Dmitry.Obukhov on 7/23/2012(UTC)
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.