|
For those new to message boards please try to follow a few simple rules when posting your question.- Choose the correct forum for your message. Posting a VB.NET question in the C++ forum will end in tears.
- Be specific! Don't ask "can someone send me the code to create an application that does 'X'. Pinpoint exactly what it is you need help with.
- Keep the subject line brief, but descriptive. eg "File Serialization problem"
- Keep the question as brief as possible. If you have to include code, include the smallest snippet of code you can.
- Be careful when including code that you haven't made a typo. Typing mistakes can become the focal point instead of the actual question you asked.
- Do not remove or empty a message if others have replied. Keep the thread intact and available for others to search and read. If your problem was answered then edit your message and add "[Solved]" to the subject line of the original post, and cast an approval vote to the one or several answers that really helped you.
- If you are posting source code with your question, place it inside <pre></pre> tags. We advise you also check the "Encode "<" (and other HTML) characters when pasting" checkbox before pasting anything inside the PRE block, and make sure "Use HTML in this post" check box is checked.
- Be courteous and DON'T SHOUT. Everyone here helps because they enjoy helping others, not because it's their job.
- Please do not post links to your question into an unrelated forum such as the lounge. It will be deleted. Likewise, do not post the same question in more than one forum.
- Do not be abusive, offensive, inappropriate or harass anyone on the boards. Doing so will get you kicked off and banned. Play nice.
- If you have a school or university assignment, assume that your teacher or lecturer is also reading these forums.
- No advertising or soliciting.
- We reserve the right to move your posts to a more appropriate forum or to delete anything deemed inappropriate or illegal.
cheers
Chris Maunder
|
|
|
|
|
Hi
Just started on a test project to see how to access data on the company network in a mobile app.
Short I have some data logged into a SQL table that I want to display/access on a phone (both Android and iPhone).
So inspired from something I worked on some years ago and some google'ing I made a WCF service and are trying to access it in Xamarin.
BUT... I am now in doubt if what I am doing is the best way to do it?
I have just read that WCF is dead and I am not sure if Xamarin is also dead.
So before using to much time running in the wrong direction...
Is WCF the best way to go, or what should I use?
Same with Xamarin - better alternative?
I hope this is not to stupid a question that have been asked a zillion times and I just havn't stumpled across it....
Thanks in advance
//David
|
|
|
|
|
WCF isn't dead as such - there's even an open-source port for .NET Core/5/6/…[^] which is being actively developed - but I believe all the "cool kids" are using gRPC[^] these days.
Similarly, whilst Xamarin isn't going away any time soon, the next MS bandwagon seems to be .NET MAUI[^].
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
I want to use AES-GCM encryption of a plaintext with 'key' only. The 'key' will be received from backend (.net), in webservice response. The same key will be used later in backend as well to decrypt the encrypted value.
I have used extension as follwoing
To generate string to Symetric key
extension SymmetricKey {
init(string keyString: String, size: SymmetricKeySize = .bits256) throws {
guard var keyData = keyString.data(using: .utf8) else {
print("Could not create base64 encoded Data from String.")
throw CryptoKitError.incorrectParameterSize
}
let keySizeBytes = size.bitCount / 8
keyData = keyData.subdata(in: 0..<keySizeBytes)
guard keyData.count >= keySizeBytes else { throw CryptoKitError.incorrectKeySize }
self.init(data: keyData)
} }
Encryption & Decryption code snipet:
func aesgcmEncryptDecrypt() {
let str : String = "FwhXRYJ$xLf?^Kh6_&YfTJ%RuG+EqcTY"
var key : SymmetricKey = SymmetricKey(size: .bits256)
do{
key = try SymmetricKey(string: str)
}catch{
}
let plain = "HOW ARE YOU?"
let nonce = try! AES.GCM.Nonce(data: Data(base64Encoded: "fv1nixTVoYpSvpdA")!)
let tag = Data(base64Encoded: "e1eIgoB4+lA/j3KDHhY4BQ==")!
let sealedBox = try! AES.GCM.seal(plain.data(using: .utf8)!, using: key,
nonce: nonce, authenticating: tag)
let sealedBoxRestored = try! AES.GCM.SealedBox(combined: sealedBox.combined!)
let decrypted = try! AES.GCM.open(sealedBoxRestored, using: key,
authenticating: tag)
Swift.print("Combined:\n\(sealedBox.combined!.base64EncodedString())\n")
Swift.print("Cipher:\n\(sealedBox.ciphertext.base64EncodedString())\n")
Swift.print("Nonce:\n\(nonce.withUnsafeBytes {
Data(Array($0)).base64EncodedString() })\n")
Swift.print("Tag:\n\(tag.base64EncodedString())\n")
Swift.print("Decrypted:\n\(String(data: decrypted, encoding: .utf8)!)\n")
}
Our(generated from this code & .Net code) encrypted text is not matching. Anyone can help me, what I am doing wrong, detailing will be more helpful. Basically I was looking for saloution in Objective-C but I did not get any supported library for Objective-C.
|
|
|
|
|
|
how to find macos offset value
macos 10.15.1 = 0xA21F
how to find other macos systems. some one tell me
|
|
|
|
|
|
var offsetHandlerDeliveryReceipt = 0xA21F; # this is offset value
var deliveryReceiptHandlerAddr = iMessageBase.add(offsetHandlerDeliveryReceipt);
send("Hooking -[MessageServiceSession handler:messageIDDelivered:...] @ " + deliveryReceiptHandlerAddr);
Interceptor.attach(deliveryReceiptHandlerAddr, {
onEnter: function(args) {
send("DELIVERY_RECEIPT");
}
|
|
|
|
|
|
Is the functionality of IOS better than android or not?
|
|
|
|
|
Yes and no. But the question is fairly meaningless. What works well for one user may not be the same for another.
|
|
|
|
|
Of course yes, there is a big difference between the Android app and IOS app because of their functionality and many other things.
|
|
|
|
|
yes of its reliability and smoothness.
|
|
|
|
|
Hi all,
I am new to IOS but my company policies to use ipad for document signing.
I have a question.
Could you guide me how to start in IOS to build this kind of app ?
Native or webview or hybrid ?
Can i use the on device signature of Ipad to capure and store it ?
Many thanks
|
|
|
|
|
Hi all,
I am looking for a solution to hire a team to write an app will load data from sql server to a form and digital signature.
Could you suggest me a solution ?
It take me a lot of pressure to do this task
modified 13-Jan-20 10:09am.
|
|
|
|
|
What does the URL you referenced have to do with "load data from sql server to a form and digital signature?"
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles
|
|
|
|
|
I would guess OP is a spammer.
|
|
|
|
|
Hi,
I intend to hire a freelancer to build this app on IOS.
It will run locally on my wifi network which has access to sql server to show all relevant data to the form for client read and sign in.
Could you suggest me a solution ?
Webview or native app are ok too.
|
|
|
|
|
This is the wrong place to hire freelancers.
|
|
|
|
|
Especially hiring freelancers for free
The account has been reported as spammer (link in original post).
"Five fruits and vegetables a day? What a joke!
Personally, after the third watermelon, I'm full."
|
|
|
|
|
phil.o wrote: freelancers for free
Well, shouldn't they be free?
Social Media - A platform that makes it easier for the crazies to find each other.
Everyone is born right handed. Only the strongest overcome it.
Fight for left-handed rights and hand equality.
|
|
|
|
|
ZurdoDev wrote: Well, shouldn't they be free? It depends on which meaning of free is taken into account.
"Five fruits and vegetables a day? What a joke!
Personally, after the third watermelon, I'm full."
|
|
|
|
|
Hi,
I am developing ios app, in that need to create folder on ios device, i am using following code to create folder named "FT2019" ,is it my code is correct ? if correct then how see that folder on ios device physically.
if (device.platform.toLowerCase() == "android") {
window.resolveLocalFileSystemURL(cordova.file.externalRootDirectory, onFileSystemSuccess, onError);
} else {
window.requestFileSystem(LocalFileSystem.PERSISTENT, 0, onFileSystemSuccess, onError);
}
function onFileSystemSuccess(fileSystem) {
var entry = "";
if (device.platform.toLowerCase() == "android") {
entry = fileSystem;
} else {
entry = fileSystem.root;
}
entry.getDirectory("FT2019", {
create: true,
exclusive: false
}, onGetDirectorySuccess, onGetDirectoryFail);
};
function onError(e) {
alert("Fail to get folder");
};
function onGetDirectorySuccess(dir) {
dummyFilePath = dir.toURL();
};
function onGetDirectoryFail(dir) {
alert("Fail to get folder");
};
Regards
Aravindb
|
|
|
|
|
I am getting an error message for my use of nil and I am confused on how to properly unwrap the optional while placing it in an if statement to print out a string.
struct DatingProfile{
var Name: String
var Age: Int
var City: String
var FavoriteMovie: String?
var Hobbies: String?
}
let myDatingProfile = DatingProfile(Name: "William", Age: 30, City: "North Hollywood", FavoriteMovie: nil , Hobbies: "Basketball")
if let myFavoriteMovie = FavoriteMovie = nil{
print("\(Name) does not have a favorite movie")
}else {
print(myDatingProfile.FavoriteMovie)
}
}
exit status 1
main.swift:12:26: error: use of unresolved identifier 'FavoriteMovie'
if let myFavoriteMovie = FavoriteMovie = nil{
^~~~~~~~~~~~~
main.swift:13:12: error: use of unresolved identifier 'Name'
print("\(Name) does not have a favorite movie")
^~~~
main.swift:17:11: warning: expression implicitly coerced from 'String?' to 'Any'
print(myDatingProfile.FavoriteMovie)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.swift:17:27: note: provide a default value to avoid this warning
print(myDatingProfile.FavoriteMovie)
~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
?? <#default value#>
main.swift:17:27: note: force-unwrap the value to avoid this warning
print(myDatingProfile.FavoriteMovie)
~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
!
main.swift:17:27: note: explicitly cast to 'Any' with 'as Any' to silence this warning
print(myDatingProfile.FavoriteMovie)
~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
as Any
main.swift:20:1: error: extraneous '}' at top level
}
^
|
|
|
|
|
I don't know Swift, but my guess would be something like:
if let myFavoriteMovie = myDatingProfile.FavoriteMovie {
print(myFavoriteMovie)
}
else {
print("\(myDatingProfile.Name) does not have a favorite movie")
}
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|